comparison 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
comparison
equal deleted inserted replaced
779:395b7a93c1c7 780:9f13c00a2647
53 (mCertificate.subjectCN()).arg(mCertificate.subjectO()).arg(validity).arg 53 (mCertificate.subjectCN()).arg(mCertificate.subjectO()).arg(validity).arg
54 (fpstring)); 54 (fpstring));
55 mLabel->setTextFormat(Qt::RichText); 55 mLabel->setTextFormat(Qt::RichText);
56 56
57 mLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); 57 mLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
58
59 mLabel->setTextInteractionFlags(
60 Qt::TextSelectableByMouse |
61 Qt::TextSelectableByKeyboard);
58 mComboBox->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); 62 mComboBox->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
59 connect(mComboBox, SIGNAL(currentIndexChanged(int)), 63 connect(mComboBox, SIGNAL(currentIndexChanged(int)),
60 this, SLOT(currentStateChanged(int))); 64 this, SLOT(currentStateChanged(int)));
61 65
62 QHBoxLayout *layout = new QHBoxLayout; 66 QHBoxLayout *layout = new QHBoxLayout;

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