Mercurial > minori
annotate src/main.cc @ 187:9613d72b097e
*: multiple performance improvements
like marking `static const` when it makes sense...
date: change old stupid heap-based method to a structure which should
make copying the thing actually make a copy.
also many performance-based changes, like removing the std::tie
dependency and forward-declaring nlohmann json
*: replace every instance of QString::fromUtf8 to Strings::ToQString.
the main difference is that our function will always convert exactly
what is in the string, while some other times it would only convert
up to the nearest NUL byte
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 06 Dec 2023 13:43:54 -0500 |
| parents | 122fad646f81 |
| children | 975a3f0965e2 |
| 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); | |
| 13 | |
| 14 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
|
15 Anime::db.LoadDatabaseFromDisk(); |
| 10 | 16 |
| 17 MainWindow window; | |
| 18 | |
| 19 window.resize(941, 750); | |
| 11 | 20 window.setWindowTitle("Minori"); |
| 10 | 21 window.show(); |
| 22 | |
| 23 return app.exec(); | |
| 46 | 24 } |
