Mercurial > minori
comparison src/gui/dialog/about.cc @ 221:53211cb1e7f5
library: add initial library stuff
nice
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Mon, 08 Jan 2024 13:21:08 -0500 |
| parents | 649786bae914 |
| children | 7ca56c4ac0bc |
comparison
equal
deleted
inserted
replaced
| 220:79a87a6dd39d | 221:53211cb1e7f5 |
|---|---|
| 1 #include "gui/dialog/about.h" | 1 #include "gui/dialog/about.h" |
| 2 #include "core/json.h" | 2 #include "core/json.h" |
| 3 #include "core/version.h" | |
| 4 #include "core/session.h" | 3 #include "core/session.h" |
| 5 #include "core/strings.h" | 4 #include "core/strings.h" |
| 6 #include "gui/widgets/text.h" | 5 #include "gui/widgets/text.h" |
| 7 #include "pugixml.hpp" | 6 #include "pugixml.hpp" |
| 8 #include <QFont> | 7 #include <QFont> |
| 46 QHBoxLayout* layout = new QHBoxLayout(this); | 45 QHBoxLayout* layout = new QHBoxLayout(this); |
| 47 | 46 |
| 48 /* we have to generate this on-the-fly for localization purposes */ | 47 /* we have to generate this on-the-fly for localization purposes */ |
| 49 const QString html = QString( | 48 const QString html = QString( |
| 50 "<body>" | 49 "<body>" |
| 51 " <h2 style=\"font-weight: normal;\"><strong>Minori</strong> " + QString::fromUtf8(MINORI_VERSION.data(), MINORI_VERSION.size()) + "</h2>" | 50 " <h2 style=\"font-weight: normal;\"><strong>Minori</strong> v" + Strings::ToQString(session.version.to_string()) + "</h2>" |
| 52 " <p>" | 51 " <p>" |
| 53 " <strong>" + QCoreApplication::tr("Author:") + "</strong><br>" | 52 " <strong>" + QCoreApplication::tr("Author:") + "</strong><br>" |
| 54 " Paper (@mrpapersonic)" | 53 " Paper (@mrpapersonic)" |
| 55 " </p>" | 54 " </p>" |
| 56 " <p>" | 55 " <p>" |
