[PATCH 2 of 5] Use new icons in certificate lists

Wald Commits scm-commit at wald.intevation.org
Wed Jun 25 14:56:43 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1403700667 -7200
# Branch trustbridge-refactor
# Node ID 9c3e7754b76b1df504a85414dcb4164f5a926f11
# Parent  ba0434cd12e149887fa3e942de79b267d7c71d8c
Use new icons in certificate lists.

diff -r ba0434cd12e1 -r 9c3e7754b76b ui/certificateitemwidget.cpp
--- 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 {


More information about the Trustbridge-commits mailing list