comparison 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
comparison
equal deleted inserted replaced
969:c096881e8ed0 970:c80777457133
47 title, msg, QMessageBox::Ok | QMessageBox::No, 47 title, msg, QMessageBox::Ok | QMessageBox::No,
48 qobject_cast<QWidget*>(parent())); 48 qobject_cast<QWidget*>(parent()));
49 connect(mMessageBox->button(QMessageBox::Ok), SIGNAL(clicked()), this, SIGNAL(messageClicked())); 49 connect(mMessageBox->button(QMessageBox::Ok), SIGNAL(clicked()), this, SIGNAL(messageClicked()));
50 connect(mMessageBox, SIGNAL(destroyed()), this, SLOT(messageDestroyed())); 50 connect(mMessageBox, SIGNAL(destroyed()), this, SLOT(messageDestroyed()));
51 } 51 }
52 mMessageBox->setIconPixmap (icon().pixmap(mMessageBox->iconPixmap().size())); 52 mMessageBox->setIconPixmap(icon().pixmap(mMessageBox->iconPixmap().size()));
53 mMessageBox->setWindowIcon(icon());
53 mMessageBox->button(QMessageBox::Ok)->setText (tr("Install update")); 54 mMessageBox->button(QMessageBox::Ok)->setText (tr("Install update"));
54 mMessageBox->button(QMessageBox::No)->setText (tr("Remind me later")); 55 mMessageBox->button(QMessageBox::No)->setText (tr("Remind me later"));
55 mMessageBox->show(); 56 mMessageBox->show();
56 } 57 }
57 58

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