Commit c39e2757 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Adding an help tooltip for each generated field

parent 88dc9094
......@@ -49,7 +49,10 @@ PreferenceWidget::PreferenceWidget( const QString &categorie, SettingsManager::T
foreach ( SettingValue* s, settings.values() )
{
ISettingsCategorieWidget *widget = widgetFactory( s );
layout->addRow( s->name(), widget->widget() );
QLabel *label = new QLabel( s->name(), this );
label->setToolTip( s->description() );
widget->widget()->setToolTip( s->description() );
layout->addRow( label, widget->widget() );
}
setLayout( layout );
......
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