Commit cdd1f85f authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

Merge branch 'QtWidgetBool_tooltip' into 'develop'

ENH: display parameter description as tool tip for the QtWidgetBoolParameter

See merge request orfeotoolbox/otb!149
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -82,12 +82,15 @@ void QtWidgetBoolParameter::DoCreateWidget()
m_Button->setText("Off");
}
//Set the tool tip associated to the parameter
m_Button->setToolTip(QString::fromStdString( paramDown->GetDescription() ));
connect( m_Button, SIGNAL(toggled(bool)), this, SLOT(SetValue(bool)) );
connect( m_Button, SIGNAL(toggled(bool)), GetModel(), SLOT(NotifyUpdate()) );
hLayout->addWidget(m_Button);
hLayout->addStretch();
this->setLayout(hLayout);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment