comparison ui/mainwindow.cpp @ 713:cdf8a924e480

(UI) Increase apply/quit button height. Updated translations.
author Emanuel Schuetze <emanuel@intevation.de>
date Wed, 02 Jul 2014 15:46:50 +0200
parents 8f110e6b8295
children 57bd73145e48
comparison
equal deleted inserted replaced
712:1e61903f61e2 713:cdf8a924e480
466 466
467 QToolButton *updatesButton = new QToolButton; 467 QToolButton *updatesButton = new QToolButton;
468 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 468 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
469 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); 469 updatesButton->setIcon(QIcon(":/img/view-refresh.png"));
470 updatesButton->setIconSize(QSize(40, 40)); 470 updatesButton->setIconSize(QSize(40, 40));
471 updatesButton->setText(tr("Changes")); 471 updatesButton->setText(tr("Updates"));
472 updatesButton->setFixedWidth(120); 472 updatesButton->setFixedWidth(120);
473 updatesButton->setFixedHeight(80); 473 updatesButton->setFixedHeight(80);
474 updatesButton->setCheckable(true); 474 updatesButton->setCheckable(true);
475 updatesButton->setChecked(true); 475 updatesButton->setChecked(true);
476 476
562 updatesHeaderLayout->addWidget(searchUpdates, 1, 2, 2, 1, Qt::AlignRight); 562 updatesHeaderLayout->addWidget(searchUpdates, 1, 2, 2, 1, Qt::AlignRight);
563 updatesHeaderLayout->setRowMinimumHeight(4, 15); 563 updatesHeaderLayout->setRowMinimumHeight(4, 15);
564 564
565 /* Header 2: Action text and buttons */ 565 /* Header 2: Action text and buttons */
566 QLabel *updatesTip = 566 QLabel *updatesTip =
567 new QLabel(tr("You should apply the following, recommended changes to your root certificates.")); 567 new QLabel(tr("You should apply the following, recommended changes to your certificate stores."));
568 updatesTip->setWordWrap(true); 568 updatesTip->setWordWrap(true);
569 QHBoxLayout *updatesHeaderActionButtonLayout = new QHBoxLayout; 569 QHBoxLayout *updatesHeaderActionButtonLayout = new QHBoxLayout;
570 mQuitButton = new QPushButton(" " + tr("Quit without saving")); 570 mQuitButton = new QPushButton(" " + tr("Quit without saving"));
571 mQuitButton->setIcon(QIcon(":/img/application-exit.png")); 571 mQuitButton->setIcon(QIcon(":/img/application-exit.png"));
572 mQuitButton->setFixedHeight(30);
572 QPushButton *installButton = new QPushButton(" " + tr("Apply changes")); 573 QPushButton *installButton = new QPushButton(" " + tr("Apply changes"));
574 installButton->setFixedHeight(30);
573 #ifdef Q_OS_WIN 575 #ifdef Q_OS_WIN
574 if (is_admin()) { 576 if (is_admin()) {
575 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); 577 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield);
576 installButton->setIcon(uacShield); 578 installButton->setIcon(uacShield);
577 } 579 }
841 mQuitButton->setText(" " + tr("Quit")); 843 mQuitButton->setText(" " + tr("Quit"));
842 mUpdatesHeader->setText("<h2>" + tr("Certificates unchanged") + 844 mUpdatesHeader->setText("<h2>" + tr("Certificates unchanged") +
843 "</h2>"); 845 "</h2>");
844 } else { 846 } else {
845 mQuitButton->setText(" " + tr("Quit without saving")); 847 mQuitButton->setText(" " + tr("Quit without saving"));
846 mUpdatesHeader->setText("<h2>" + tr("Changes (%1)") 848 mUpdatesHeader->setText("<h2>" + tr("Changes to certificate stores (%1)")
847 .arg(totalCount) + 849 .arg(totalCount) +
848 "</h2>"); 850 "</h2>");
849 } 851 }
850 852
851 mUpdatesNewCertificates->setText("<h3>" + 853 mUpdatesNewCertificates->setText("<h3>" +

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