Mercurial > minori
comparison src/main.cc @ 325:78929794e7d8
pages/seasons: run seasons search in a separate thread
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 13 Jun 2024 00:36:41 -0400 |
parents | b1f4d1867ab1 |
children | b5d6c27c308f |
comparison
equal
deleted
inserted
replaced
324:5d3c9b31aa6e | 325:78929794e7d8 |
---|---|
1 #include "core/anime.h" | |
1 #include "core/anime_db.h" | 2 #include "core/anime_db.h" |
3 #include "core/date.h" | |
2 #include "core/session.h" | 4 #include "core/session.h" |
3 #include "core/strings.h" | 5 #include "core/strings.h" |
4 #include "gui/window.h" | 6 #include "gui/window.h" |
5 #include "services/anilist.h" | 7 #include "services/anilist.h" |
6 | 8 |
18 app.setAttribute(Qt::AA_DontShowIconsInMenus, true); | 20 app.setAttribute(Qt::AA_DontShowIconsInMenus, true); |
19 | 21 |
20 qRegisterMetaType<std::vector<std::string>>(); /* window.cc */ | 22 qRegisterMetaType<std::vector<std::string>>(); /* window.cc */ |
21 qRegisterMetaType<std::vector<int>>(); /* search.cc */ | 23 qRegisterMetaType<std::vector<int>>(); /* search.cc */ |
22 qRegisterMetaType<std::string>(); | 24 qRegisterMetaType<std::string>(); |
25 qRegisterMetaType<Anime::SeriesSeason>(); | |
26 qRegisterMetaType<Date::Year>("Date::Year"); | |
23 | 27 |
24 session.config.Load(); | 28 session.config.Load(); |
25 Anime::db.LoadDatabaseFromDisk(); | 29 Anime::db.LoadDatabaseFromDisk(); |
26 | 30 |
27 MainWindow window; | 31 MainWindow window; |