projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a267f8
)
prop/bool: Add a tooltip containing a description.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Wed, 29 Mar 2017 23:48:12 +0000
(
01:48
+0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 30 Mar 2017 17:57:21 +0000
(19:57 +0200)
This can be the description of an option of an input/output module,
for example.
pv/prop/bool.cpp
patch
|
blob
|
history
diff --git
a/pv/prop/bool.cpp
b/pv/prop/bool.cpp
index aab5a723c862343feee4c89db918e2b43403f956..0dd1c50f10698702a2397ea604b27d6c285ab230 100644
(file)
--- a/
pv/prop/bool.cpp
+++ b/
pv/prop/bool.cpp
@@
-48,6
+48,7
@@
QWidget* Bool::get_widget(QWidget *parent, bool auto_commit)
variant).get();
check_box_ = new QCheckBox(name(), parent);
+ check_box_->setToolTip(desc());
check_box_->setCheckState(value ? Qt::Checked : Qt::Unchecked);
if (auto_commit)