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:
Uwe Hermann 2017-03-30 01:48:12 +02:00
parent 9a267f8dec
commit 9af565cbd6
1 changed files with 1 additions and 0 deletions

View File

@ -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)