comparison ui/mainwindow.cpp @ 702:9dea3d895f53

(Issue22) Add a space between button icon and text.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 02 Jul 2014 11:31:44 +0200
parents 55f78c4166fb
children 2c63bb63de76
comparison
equal deleted inserted replaced
701:31c3d2bc9880 702:9dea3d895f53
546 updatesHeaderTextLayout->addWidget(mLastCertUpdate); 546 updatesHeaderTextLayout->addWidget(mLastCertUpdate);
547 updatesHeaderTextLayout->addWidget(mLastSWupdate); 547 updatesHeaderTextLayout->addWidget(mLastSWupdate);
548 updatesHeaderTextLayout->addSpacing(10); 548 updatesHeaderTextLayout->addSpacing(10);
549 updatesHeaderTextLayout->addWidget(updatesTip); 549 updatesHeaderTextLayout->addWidget(updatesTip);
550 550
551 QPushButton *searchUpdates = new QPushButton(tr("Check for updates")); 551 QPushButton *searchUpdates = new QPushButton(" " + tr("Check for updates"));
552 searchUpdates->setIcon(QIcon(":/img/edit-find.png")); 552 searchUpdates->setIcon(QIcon(":/img/edit-find.png"));
553 mQuitButton = new QPushButton(tr("Quit without saving")); 553 mQuitButton = new QPushButton(" " + tr("Quit without saving"));
554 mQuitButton->setIcon(QIcon(":/img/application-exit.png")); 554 mQuitButton->setIcon(QIcon(":/img/application-exit.png"));
555 QPushButton *installButton = new QPushButton(tr("Apply changes")); 555 QPushButton *installButton = new QPushButton(" " + tr("Apply changes"));
556 #ifdef Q_OS_WIN 556 #ifdef Q_OS_WIN
557 if (is_admin()) { 557 if (is_admin()) {
558 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); 558 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield);
559 installButton->setIcon(uacShield); 559 installButton->setIcon(uacShield);
560 } 560 }
815 int totalCount = mUpdatesRemove->selectedCertCount() + 815 int totalCount = mUpdatesRemove->selectedCertCount() +
816 mUpdatesNew->selectedCertCount() + mUpdatesManual->certificates().size(); 816 mUpdatesNew->selectedCertCount() + mUpdatesManual->certificates().size();
817 817
818 if (!totalCount) { 818 if (!totalCount) {
819 /* No changes */ 819 /* No changes */
820 mQuitButton->setText(tr("Quit")); 820 mQuitButton->setText(" " + tr("Quit"));
821 mUpdatesHeader->setText("<h2>" + tr("Certificates unchanged") + 821 mUpdatesHeader->setText("<h2>" + tr("Certificates unchanged") +
822 "</h2>"); 822 "</h2>");
823 } else { 823 } else {
824 mQuitButton->setText(tr("Quit without saving")); 824 mQuitButton->setText(" " + tr("Quit without saving"));
825 mUpdatesHeader->setText("<h2>" + tr("Changes (%1)") 825 mUpdatesHeader->setText("<h2>" + tr("Changes (%1)")
826 .arg(totalCount) + 826 .arg(totalCount) +
827 "</h2>"); 827 "</h2>");
828 } 828 }
829 829

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