comparison ui/mainwindow.cpp @ 1313:f9f2c92969d2

(issue161) Set do-changes icon also on windows when UAC shield is not neccessary.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 13 Oct 2014 15:17:15 +0200
parents 135891f1c8f4
children dd3eefda8503
comparison
equal deleted inserted replaced
1312:b0bdccc4ee2d 1313:f9f2c92969d2
786 mInstallButton->setFixedHeight(30); 786 mInstallButton->setFixedHeight(30);
787 #ifdef Q_OS_WIN 787 #ifdef Q_OS_WIN
788 if (is_system_install()) { 788 if (is_system_install()) {
789 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); 789 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield);
790 mInstallButton->setIcon(uacShield); 790 mInstallButton->setIcon(uacShield);
791 } else {
792 mInstallButton->setIcon(QIcon(":/img/do-changes-16.png"));
791 } 793 }
792 #else 794 #else
793 mInstallButton->setIcon(QIcon(":/img/do-changes-16.png")); 795 mInstallButton->setIcon(QIcon(":/img/do-changes-16.png"));
794 #endif 796 #endif
795 connect(mQuitButton, SIGNAL(clicked()), this, SLOT(closeApp())); 797 connect(mQuitButton, SIGNAL(clicked()), this, SLOT(closeApp()));

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