Second attempt at putting a description in the preferences page

Change-Id: I6d196486e824c82d29f1c233ef3230ad8619715d
Reviewed-on: https://code.wireshark.org/review/5434
Reviewed-by: Stephen Fisher <sfisher@sdf.org>
This commit is contained in:
Stephen Fisher 2014-11-21 16:23:24 -07:00
parent 953e6b1dd0
commit 10803f2119
1 changed files with 7 additions and 0 deletions

View File

@ -221,6 +221,13 @@ ModulePreferencesScrollArea::ModulePreferencesScrollArea(module_t *module, QWidg
if (!module) return;
/* Show the preference's description at the top of the page */
QFont font;
font.setBold(TRUE);
QLabel *label = new QLabel(module->description);
label->setFont(font);
ui->verticalLayout->addWidget(label);
/* Add items for each of the preferences */
prefs_pref_foreach(module, pref_show, (gpointer) ui->verticalLayout);