Mercurial > minori
annotate src/main.cc @ 231:69f4768a820c
chore: merge divergent branches
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Sat, 13 Jan 2024 09:43:41 -0500 |
| parents | adc20fa321c1 |
| children | 4d461ef7d424 |
| rev | line source |
|---|---|
| 10 | 1 #include "core/session.h" |
| 175 | 2 #include "core/anime_db.h" |
| 10 | 3 #include "gui/window.h" |
| 4 #include <QApplication> | |
| 46 | 5 #include <QStyleFactory> |
| 108 | 6 #include <QTranslator> |
|
98
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
7 #include <QLocale> |
| 10 | 8 |
| 9 Session session; | |
| 10 | |
| 11 int main(int argc, char** argv) { | |
| 12 QApplication app(argc, argv); | |
|
229
adc20fa321c1
theme: force Fusion style on platforms other than Win32 or OS X
Paper <paper@paper.us.eu.org>
parents:
195
diff
changeset
|
13 #if !(defined(WIN32) || defined(MACOSX)) |
|
adc20fa321c1
theme: force Fusion style on platforms other than Win32 or OS X
Paper <paper@paper.us.eu.org>
parents:
195
diff
changeset
|
14 /* force Fusion */ |
|
adc20fa321c1
theme: force Fusion style on platforms other than Win32 or OS X
Paper <paper@paper.us.eu.org>
parents:
195
diff
changeset
|
15 app.setStyle("Fusion"); |
|
adc20fa321c1
theme: force Fusion style on platforms other than Win32 or OS X
Paper <paper@paper.us.eu.org>
parents:
195
diff
changeset
|
16 #endif |
| 10 | 17 |
| 18 session.config.Load(); | |
|
195
975a3f0965e2
locale: only attempt loading locales after QApplication is init'd
Paper <mrpapersonic@gmail.com>
parents:
177
diff
changeset
|
19 session.config.locale.RefreshAvailableLocales(); |
|
177
122fad646f81
anime/db: upgrade to c++17 style, make things easier to read
Paper <mrpapersonic@gmail.com>
parents:
175
diff
changeset
|
20 Anime::db.LoadDatabaseFromDisk(); |
| 10 | 21 |
| 22 MainWindow window; | |
| 23 | |
| 24 window.resize(941, 750); | |
| 11 | 25 window.setWindowTitle("Minori"); |
| 10 | 26 window.show(); |
| 27 | |
| 28 return app.exec(); | |
| 46 | 29 } |
