Mercurial > minori
annotate src/main.cc @ 247:1ae4d8b28a5c
autotools/windres: use AC_PROG_SED for sed
sed is actually surprisingly unportable. on mingw this shouldn't
be a problem, but alas, we should use it anyway
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 24 Jan 2024 20:15:35 -0500 |
parents | 4d461ef7d424 |
children | c130f47f6f48 |
rev | line source |
---|---|
10 | 1 #include "core/session.h" |
175 | 2 #include "core/anime_db.h" |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
3 #include "core/strings.h" |
10 | 4 #include "gui/window.h" |
5 #include <QApplication> | |
46 | 6 #include <QStyleFactory> |
108 | 7 #include <QTranslator> |
98
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
8 #include <QLocale> |
10 | 9 |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
10 #include <iostream> |
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
11 |
10 | 12 Session session; |
13 | |
14 int main(int argc, char** argv) { | |
15 QApplication app(argc, argv); | |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
16 app.setAttribute(Qt::AA_DontShowIconsInMenus, true); |
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 } |