comparison ui/mainwindow.cpp @ 1326:dd3eefda8503

(issue155) Set window icon to the logo on unity
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 15 Oct 2014 10:03:48 +0200
parents f9f2c92969d2
children 5c6294c201c2
comparison
equal deleted inserted replaced
1325:303de3160a83 1326:dd3eefda8503
672 672
673 mTrayIcon = new TrayIcon(this); 673 mTrayIcon = new TrayIcon(this);
674 mTrayIcon->setContextMenu(mTrayMenu); 674 mTrayIcon->setContextMenu(mTrayMenu);
675 675
676 mTrayIcon->setIcon(trayImg); 676 mTrayIcon->setIcon(trayImg);
677 setWindowIcon(trayImg); 677
678 if (mTrayIcon->isAlternative()) {
679 /* On unity (the alternative notification usage)
680 * we want to use the logo as window icon.*/
681 setWindowIcon(QIcon(":/img/logo.png"));
682 } else {
683 setWindowIcon(trayImg);
684 }
678 mTrayIcon->setToolTip(tr("TrustBridge")); 685 mTrayIcon->setToolTip(tr("TrustBridge"));
679 686
680 connect(mTrayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked())); 687 connect(mTrayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked()));
681 } 688 }
682 689

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