[PATCH] (issue155) Use the logo as the window icon

Wald Commits scm-commit at wald.intevation.org
Mon Oct 13 16:14:00 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1413209418 -7200
# Node ID 5f4e77acb2f33a95b3728b52de806b29b7dcc02d
# Parent  f9f2c92969d2fd4e3da91edacbd2e0ec8f0b5ff5
(issue155) Use the logo as the window icon.

diff -r f9f2c92969d2 -r 5f4e77acb2f3 ui/trayicon.cpp
--- a/ui/trayicon.cpp	Mon Oct 13 15:17:15 2014 +0200
+++ b/ui/trayicon.cpp	Mon Oct 13 16:10:18 2014 +0200
@@ -51,7 +51,8 @@
         connect(mMessageBox, SIGNAL(destroyed()), this, SLOT(messageDestroyed()));
     }
     mMessageBox->setIconPixmap(icon().pixmap(mMessageBox->iconPixmap().size()));
-    mMessageBox->setWindowIcon(icon());
+    mMessageBox->setWindowIcon(QIcon(":/img/logo.png"));
+
     if (!okBtnText.isEmpty()) {
         mMessageBox->button(QMessageBox::Ok)->setText (okBtnText);
     } else {


More information about the Trustbridge-commits mailing list