From: Uwe Hermann Date: Thu, 14 Mar 2019 20:33:36 +0000 (+0100) Subject: DecoderSelector: Make PD info text selectable. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0a7cdbf7a168bcd11b6418b66a5d05706e00d8cb;p=pulseview.git DecoderSelector: Make PD info text selectable. This allows for e.g. highlighting and copy-pasting. --- diff --git a/pv/subwindows/decoder_selector/subwindow.cpp b/pv/subwindows/decoder_selector/subwindow.cpp index 6302e449..a201791f 100644 --- a/pv/subwindows/decoder_selector/subwindow.cpp +++ b/pv/subwindows/decoder_selector/subwindow.cpp @@ -110,10 +110,14 @@ SubWindow::SubWindow(Session& session, QWidget* parent) : info_box_layout->addWidget(info_label_header_); info_box_layout->addWidget(info_label_body_); info_box_layout->addWidget(info_label_footer_); + Qt::TextInteractionFlags flags = Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard; info_label_header_->setWordWrap(true); + info_label_header_->setTextInteractionFlags(flags); info_label_body_->setWordWrap(true); + info_label_body_->setTextInteractionFlags(flags); info_label_body_->setText(tr("Select a decoder to see its description here.")); info_label_footer_->setWordWrap(true); + info_label_footer_->setTextInteractionFlags(flags); connect(filter, SIGNAL(textChanged(const QString&)), this, SLOT(on_filter_changed(const QString&)));