projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecoderSelector: Set alignment=top for the PD info text.
[pulseview.git]
/
pv
/
subwindows
/
decoder_selector
/
subwindow.cpp
diff --git
a/pv/subwindows/decoder_selector/subwindow.cpp
b/pv/subwindows/decoder_selector/subwindow.cpp
index 3a917190b6f263091aac8b2a9cd5987fe85af056..c8e0e1c16617a8dd642b8f6a054cb1d4785cdaf0 100644
(file)
--- a/
pv/subwindows/decoder_selector/subwindow.cpp
+++ b/
pv/subwindows/decoder_selector/subwindow.cpp
@@
-110,8
+110,15
@@
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_);
info_box_layout->addWidget(info_label_header_);
info_box_layout->addWidget(info_label_body_);
info_box_layout->addWidget(info_label_footer_);
+ info_box_layout->setAlignment(Qt::AlignTop);
+ 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_->setWordWrap(true);
+ info_label_body_->setTextInteractionFlags(flags);
info_label_body_->setText(tr("Select a decoder to see its description here."));
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&)));
connect(filter, SIGNAL(textChanged(const QString&)),
this, SLOT(on_filter_changed(const QString&)));