diff ui/certificateitemwidget.cpp @ 780:9f13c00a2647

Make certificate text selectable
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 14 Jul 2014 11:50:02 +0200
parents b6172b9f885d
children 4eff77851e76
line wrap: on
line diff
--- a/ui/certificateitemwidget.cpp	Mon Jul 14 11:49:14 2014 +0200
+++ b/ui/certificateitemwidget.cpp	Mon Jul 14 11:50:02 2014 +0200
@@ -55,6 +55,10 @@
     mLabel->setTextFormat(Qt::RichText);
 
     mLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+
+    mLabel->setTextInteractionFlags(
+        Qt::TextSelectableByMouse |
+        Qt::TextSelectableByKeyboard);
     mComboBox->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
     connect(mComboBox, SIGNAL(currentIndexChanged(int)),
         this, SLOT(currentStateChanged(int)));

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