Mercurial > minori
annotate src/main.cc @ 257:699a20c57dc8
scripts: Bourne shell compatibility
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 18 Feb 2024 16:02:14 -0500 |
parents | c130f47f6f48 |
children | 862d0d8619f6 |
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" |
250 | 4 #include "services/anilist.h" |
10 | 5 #include "gui/window.h" |
250 | 6 |
10 | 7 #include <QApplication> |
46 | 8 #include <QStyleFactory> |
108 | 9 #include <QTranslator> |
98
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
10 #include <QLocale> |
10 | 11 |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
12 #include <iostream> |
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
13 |
10 | 14 Session session; |
15 | |
16 int main(int argc, char** argv) { | |
17 QApplication app(argc, argv); | |
250 | 18 app.setApplicationName("minori"); |
19 app.setApplicationDisplayName("Minori"); | |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
20 app.setAttribute(Qt::AA_DontShowIconsInMenus, true); |
10 | 21 |
22 session.config.Load(); | |
177
122fad646f81
anime/db: upgrade to c++17 style, make things easier to read
Paper <mrpapersonic@gmail.com>
parents:
175
diff
changeset
|
23 Anime::db.LoadDatabaseFromDisk(); |
10 | 24 |
25 MainWindow window; | |
26 | |
27 window.resize(941, 750); | |
11 | 28 window.setWindowTitle("Minori"); |
10 | 29 window.show(); |
30 | |
31 return app.exec(); | |
46 | 32 } |