Commit 379fcd86 authored by Manuel Grizonnet's avatar Manuel Grizonnet

ENH: display parameter description as tool tip for the QtWidgetBoolParameter

parent f13a79c1
......@@ -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);
}
......
Markdown is supported
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