Skip to content
Snippets Groups Projects
Commit 379fcd86 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: display parameter description as tool tip for the QtWidgetBoolParameter

parent f13a79c1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment