# HG changeset patch # User Andre Heinecke # 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("

" + tr("Certificates unchanged") + "

"); } else { - mQuitButton->setText(tr("Quit without saving")); + mQuitButton->setText(" " + tr("Quit without saving")); mUpdatesHeader->setText("

" + tr("Changes (%1)") .arg(totalCount) + "

");