[PATCH 2 of 2] (Issue22) Add a space between button icon and text

Wald Commits scm-commit at wald.intevation.org
Wed Jul 2 11:31:48 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404293504 -7200
# Node ID 9dea3d895f532a0818f6674a21b3ddc320caf683
# Parent  31c3d2bc988074848788cfd889da82b9510b02df
(Issue22) Add a space between button icon and text.

diff -r 31c3d2bc9880 -r 9dea3d895f53 ui/mainwindow.cpp
--- 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>");


More information about the Trustbridge-commits mailing list