Mercurial > minori
annotate src/main.cc @ 288:8b9db17d1e5f
autoconf: don't need Qt5Svg
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 08 May 2024 16:47:25 -0400 |
parents | f31305b9f60a |
children | 34347fd2a2de |
rev | line source |
---|---|
258 | 1 #include "core/anime_db.h" |
10 | 2 #include "core/session.h" |
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
229
diff
changeset
|
3 #include "core/strings.h" |
258 | 4 #include "gui/window.h" |
250 | 5 #include "services/anilist.h" |
6 | |
10 | 7 #include <QApplication> |
258 | 8 #include <QLocale> |
46 | 9 #include <QStyleFactory> |
108 | 10 #include <QTranslator> |
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 |
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
22 qRegisterMetaType<std::vector<std::string>>(); /* window.cc */ |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
23 qRegisterMetaType<std::vector<int>>(); /* search.cc */ |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
24 |
10 | 25 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
|
26 Anime::db.LoadDatabaseFromDisk(); |
10 | 27 |
28 MainWindow window; | |
29 | |
30 window.resize(941, 750); | |
11 | 31 window.setWindowTitle("Minori"); |
10 | 32 window.show(); |
33 | |
34 return app.exec(); | |
46 | 35 } |