diff ui/trayicon.cpp @ 970:c80777457133

(issue50) Add window icon and icon for 48x48px
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 28 Aug 2014 14:50:06 +0200
parents c096881e8ed0
children a4282bc67a8b
line wrap: on
line diff
--- a/ui/trayicon.cpp	Thu Aug 28 14:43:47 2014 +0200
+++ b/ui/trayicon.cpp	Thu Aug 28 14:50:06 2014 +0200
@@ -49,7 +49,8 @@
         connect(mMessageBox->button(QMessageBox::Ok), SIGNAL(clicked()), this, SIGNAL(messageClicked()));
         connect(mMessageBox, SIGNAL(destroyed()), this, SLOT(messageDestroyed()));
     }
-    mMessageBox->setIconPixmap (icon().pixmap(mMessageBox->iconPixmap().size()));
+    mMessageBox->setIconPixmap(icon().pixmap(mMessageBox->iconPixmap().size()));
+    mMessageBox->setWindowIcon(icon());
     mMessageBox->button(QMessageBox::Ok)->setText (tr("Install update"));
     mMessageBox->button(QMessageBox::No)->setText (tr("Remind me later"));
     mMessageBox->show();

http://wald.intevation.org/projects/trustbridge/