From: Uwe Hermann Date: Wed, 29 Mar 2017 23:48:12 +0000 (+0200) Subject: prop/bool: Add a tooltip containing a description. X-Git-Tag: pulseview-0.4.0~110 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9af565cbd6d2580a60286c4b3de21af6bbcf7e91;p=pulseview.git prop/bool: Add a tooltip containing a description. This can be the description of an option of an input/output module, for example. --- diff --git a/pv/prop/bool.cpp b/pv/prop/bool.cpp index aab5a723..0dd1c50f 100644 --- 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)