Mercurial > trustbridge
comparison ui/certificateitemwidget.cpp @ 659:c7405d526ead
(UI) Updated English strings.
author | Emanuel Schuetze <emanuel@intevation.de> |
---|---|
date | Thu, 26 Jun 2014 12:31:55 +0200 |
parents | 9c3e7754b76b |
children | 248d4f24e618 |
comparison
equal
deleted
inserted
replaced
658:ac5c0ad4dd04 | 659:c7405d526ead |
---|---|
31 this, SLOT(currentStateChanged(int))); | 31 this, SLOT(currentStateChanged(int))); |
32 | 32 |
33 QHBoxLayout *layout = new QHBoxLayout; | 33 QHBoxLayout *layout = new QHBoxLayout; |
34 if (mCertificate.isInstallCert()) { | 34 if (mCertificate.isInstallCert()) { |
35 mComboBox->addItem(QIcon(":/img/security-high.png"), tr("install"), QVariant("true")); | 35 mComboBox->addItem(QIcon(":/img/security-high.png"), tr("install"), QVariant("true")); |
36 mComboBox->addItem(QIcon(":/img/security-low.png"), | 36 mComboBox->addItem(QIcon(":/img/security-low.png"), tr("remove"), QVariant("false")); |
37 tr("remove"), QVariant("false")); | |
38 if (mState) | 37 if (mState) |
39 mComboBox->setCurrentIndex(0); | 38 mComboBox->setCurrentIndex(0); |
40 else { | 39 else { |
41 mComboBox->setCurrentIndex(1); | 40 mComboBox->setCurrentIndex(1); |
42 } | 41 } |
49 imgLabel->setFixedSize(28, 28); | 48 imgLabel->setFixedSize(28, 28); |
50 imgLabel->setMargin(2); | 49 imgLabel->setMargin(2); |
51 layout->addWidget(imgLabel); | 50 layout->addWidget(imgLabel); |
52 } | 51 } |
53 else { | 52 else { |
54 mComboBox->addItem(QIcon(":/img/trash-empty.png"), tr("deinstall"), QVariant("true")); | 53 mComboBox->addItem(QIcon(":/img/trash-empty.png"), tr("uninstall"), QVariant("true")); |
55 mComboBox->addItem(QIcon(":/img/security-medium.png"), | 54 mComboBox->addItem(QIcon(":/img/security-medium.png"), tr("keep"), QVariant("false")); |
56 tr("leave"), QVariant("false")); | |
57 if (mState) | 55 if (mState) |
58 mComboBox->setCurrentIndex(0); | 56 mComboBox->setCurrentIndex(0); |
59 else { | 57 else { |
60 mComboBox->setCurrentIndex(1); | 58 mComboBox->setCurrentIndex(1); |
61 } | 59 } |