changeset 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 31c3d2bc9880
children 2c63bb63de76
files ui/mainwindow.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Wed Jul 02 11:26:42 2014 +0200
+++ b/ui/mainwindow.cpp	Wed Jul 02 11:31:44 2014 +0200
@@ -548,11 +548,11 @@
     updatesHeaderTextLayout->addSpacing(10);
     updatesHeaderTextLayout->addWidget(updatesTip);
 
-    QPushButton *searchUpdates = new QPushButton(tr("Check for updates"));
+    QPushButton *searchUpdates = new QPushButton(" " + tr("Check for updates"));
     searchUpdates->setIcon(QIcon(":/img/edit-find.png"));
-    mQuitButton = new QPushButton(tr("Quit without saving"));
+    mQuitButton = new QPushButton(" " + tr("Quit without saving"));
     mQuitButton->setIcon(QIcon(":/img/application-exit.png"));
-    QPushButton *installButton = new QPushButton(tr("Apply changes"));
+    QPushButton *installButton = new QPushButton(" " + tr("Apply changes"));
 #ifdef Q_OS_WIN
     if (is_admin()) {
         QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield);
@@ -817,11 +817,11 @@
 
     if (!totalCount) {
         /* No changes */
-        mQuitButton->setText(tr("Quit"));
+        mQuitButton->setText(" " + tr("Quit"));
         mUpdatesHeader->setText("<h2>" + tr("Certificates unchanged") +
                 "</h2>");
     } else {
-        mQuitButton->setText(tr("Quit without saving"));
+        mQuitButton->setText(" " + tr("Quit without saving"));
         mUpdatesHeader->setText("<h2>" + tr("Changes (%1)")
                 .arg(totalCount) +
                 "</h2>");

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