diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-06 20:44:12 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-06 20:44:12 +0200 |
commit | 7965f73b64018bbac155c4e2c3208350dae69954 (patch) | |
tree | a45bd6937ec853ad1846116e605ae7497be4c475 /src/about/aboutdialog.cpp | |
parent | Add tabler-icons (diff) | |
download | smolbote-7965f73b64018bbac155c4e2c3208350dae69954.tar.xz |
Remove data/resources.qrc
Diffstat (limited to 'src/about/aboutdialog.cpp')
-rw-r--r-- | src/about/aboutdialog.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/about/aboutdialog.cpp b/src/about/aboutdialog.cpp index 894b1ec..f42d551 100644 --- a/src/about/aboutdialog.cpp +++ b/src/about/aboutdialog.cpp @@ -7,6 +7,7 @@ */ #include "aboutdialog.h" +#include "../poi_logos.h" #include "ui_aboutdialog.h" #include <version.h> @@ -26,18 +27,11 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) , ui(new Ui::AboutDialog) { - //setAttribute(Qt::WA_DeleteOnClose, true); + setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(this); - const QByteArray icon_svg = R"SVG( -<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" version="1.1"> - <circle cx="150" cy="150" r="100" stroke="#000000" stroke-width="6" fill="#e60026"></circle> - <circle cx="150" cy="150" r="87" stroke="#000000" stroke-width="4" fill="#e5e4e2"></circle> - <path d="M230,150 A80,80 0 0 0 150,70 L150,150 Z" /> - <path d="M70,150 A80,80 0 0 0 150,230 L150,150 Z" /> -</svg> -)SVG"; - ui->appIcon_svg->load(icon_svg); + constexpr auto icon_svg = logos::get([] { return std::string_view("poi_window.svg"); }); + ui->appIcon_svg->load(QByteArray(icon_svg.data(), icon_svg.size())); ui->appName_label->setText(qApp->applicationName()); ui->appVersion_label->setText(qApp->applicationVersion()); @@ -66,9 +60,6 @@ AboutDialog::AboutDialog(QWidget *parent) "<li>spdlog</li>" "<li><a href='https://github.com/Taywee/args'>args.hxx</a></li>" "<li><a href='https://github.com/itay-grudev/SingleApplication'>SingleApplication</a></li>" -#ifdef CONFIG_USEBREAKPAD - "<li><a href='https://chromium.googlesource.com/breakpad/breakpad'>Breakpad</a></li>" -#endif "</ul></p>")); } |