[PATCH 2 of 3] Make certificate text selectable

Wald Commits scm-commit at wald.intevation.org
Mon Jul 14 11:50:27 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1405331402 -7200
# Node ID 9f13c00a2647f97c945941293b2c8d13f1a36d59
# Parent  395b7a93c1c7a2a28d63d72f73f8e654ef11d2d9
Make certificate text selectable

diff -r 395b7a93c1c7 -r 9f13c00a2647 ui/certificateitemwidget.cpp
--- 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)));


More information about the Trustbridge-commits mailing list