forked from osmocom/wireshark
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:
parent
953e6b1dd0
commit
10803f2119
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue