messagelist
Functions | |
void | fillIntegerOptionCombo (KComboBox *combo, const QList< QPair< QString, int > > &optionDescriptors) |
int | getIntegerOptionComboValue (KComboBox *combo, int defaultValue) |
void | setIntegerOptionComboValue (KComboBox *combo, int value) |
Detailed Description
Namespace containing some helper functions for KComboBox widgets.
Function Documentation
void MessageList::Utils::ComboBoxUtils::fillIntegerOptionCombo | ( | KComboBox * | combo, |
const QList< QPair< QString, int > > & | optionDescriptors | ||
) |
Fills the specified KComboBox with the options available in optionDescriptors.
Each option descriptor contains a description string and a distinct integer (possibly enum) identifier value.
Definition at line 29 of file comboboxutils.cpp.
int MessageList::Utils::ComboBoxUtils::getIntegerOptionComboValue | ( | KComboBox * | combo, |
int | defaultValue | ||
) |
Returns the identifier of the currently selected option in the specified combo.
If the combo has no current selection or something goes wrong then the defaultValue is returned instead.
Definition at line 71 of file comboboxutils.cpp.
void MessageList::Utils::ComboBoxUtils::setIntegerOptionComboValue | ( | KComboBox * | combo, |
int | value | ||
) |
Sets the currently selected option in the specified combo.
Definition at line 59 of file comboboxutils.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.