diff ui/certificatelistwidget.cpp @ 653:39f03316f675 trustbridge-refactor

Change button text when toggling details and select the first list item.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 25 Jun 2014 14:56:19 +0200
parents 7cd6602e3fa2
children 320a64d58e62
line wrap: on
line diff
--- a/ui/certificatelistwidget.cpp	Wed Jun 25 14:54:45 2014 +0200
+++ b/ui/certificatelistwidget.cpp	Wed Jun 25 14:56:19 2014 +0200
@@ -235,3 +235,11 @@
     }
     return false;
 }
+
+void CertificateListWidget::setSelected(int index)
+{
+    mCertificateList->setFocus();
+    if (mCertificateList->count() > 0) {
+        mCertificateList->item(0)->setSelected(true);
+    }
+}

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