diff ui/certificateitemwidget.cpp @ 650:9c3e7754b76b trustbridge-refactor

Use new icons in certificate lists.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 25 Jun 2014 14:51:07 +0200
parents 9d806f140bd5
children c7405d526ead
line wrap: on
line diff
--- a/ui/certificateitemwidget.cpp	Wed Jun 25 14:49:36 2014 +0200
+++ b/ui/certificateitemwidget.cpp	Wed Jun 25 14:51:07 2014 +0200
@@ -32,8 +32,8 @@
 
     QHBoxLayout *layout = new QHBoxLayout;
     if (mCertificate.isInstallCert()) {
-        mComboBox->addItem(QIcon(":/img/list-add.png"), tr("add"), QVariant("true"));
-        mComboBox->addItem(QIcon(":/img/list-remove.png"),
+        mComboBox->addItem(QIcon(":/img/security-high.png"), tr("install"), QVariant("true"));
+        mComboBox->addItem(QIcon(":/img/security-low.png"),
             tr("remove"), QVariant("false"));
         if (mState)
             mComboBox->setCurrentIndex(0);
@@ -43,17 +43,17 @@
         layout->addWidget(mComboBox);
     }
     else if (!mCertificate.isInstallCert() && !mEditable){
-        QImage *img = new QImage(":/img/list-remove.png");
+        QImage *img = new QImage(":/img/trash-empty.png");
         QLabel *imgLabel = new QLabel;
         imgLabel->setPixmap(QPixmap::fromImage(*img));
-        imgLabel->setFixedSize(25, 25);
-        imgLabel->setMargin(5);
+        imgLabel->setFixedSize(28, 28);
+        imgLabel->setMargin(2);
         layout->addWidget(imgLabel);
     }
     else {
-        mComboBox->addItem(QIcon(":/img/list-add.png"), tr("add"), QVariant("true"));
-        mComboBox->addItem(QIcon(":/img/list-remove.png"),
-            tr("remove"), QVariant("false"));
+        mComboBox->addItem(QIcon(":/img/trash-empty.png"), tr("deinstall"), QVariant("true"));
+        mComboBox->addItem(QIcon(":/img/security-medium.png"),
+            tr("leave"), QVariant("false"));
         if (mState)
             mComboBox->setCurrentIndex(0);
         else {

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