mirror of git://sigrok.org/pulseview
prop/bool: Add a tooltip containing a description.
This can be the description of an option of an input/output module, for example.
This commit is contained in:
parent
9a267f8dec
commit
9af565cbd6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue