From b73e9e8c7911ddf33f5260267366499e62754ef0 Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Tue, 30 Jun 2020 18:34:31 -0400 Subject: [PATCH] bundle logo in resource bundle and display regardless of theme/install status. --- src/main.cpp | 2 +- src/resources.qrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7f7de11..74e7d82 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,7 +53,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("eyecreate.org"); QCoreApplication::setApplicationName(aboutData.productName()); QCoreApplication::setApplicationVersion(aboutData.version()); - app.setWindowIcon(QIcon::fromTheme("org.eyecreate.vehiclevoyage")); + app.setWindowIcon(QIcon(":/logo.svg")); QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); #ifdef Q_OS_ANDROID diff --git a/src/resources.qrc b/src/resources.qrc index 63a5866..720af0f 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -3,6 +3,7 @@ contents/ui/main.qml contents/speed.svg contents/license.svg + ../packaging/org.eyecreate.vehiclevoyage.svg qtquickcontrols2.conf -- GitLab