libs/libksane/libksane
#include <labeled_combo.h>
Public Slots | |
void | addItems (const QStringList &list) |
void | clear () |
QString | currentText () |
void | setCurrentIndex (int) |
void | setCurrentText (const QString &) |
bool | setIcon (const QIcon &icon, const QString &str) |
Signals | |
void | activated (int) |
Public Member Functions | |
LabeledCombo (QWidget *parent, const QString &label, const QStringList &list) | |
Public Member Functions inherited from KSaneIface::KSaneOptionWidget | |
KSaneOptionWidget (QWidget *parent, const QString &labelText) | |
~KSaneOptionWidget () | |
int | labelWidthHint () |
void | setLabelText (const QString &text) |
void | setLabelWidth (int labelWidth) |
Additional Inherited Members | |
Protected Attributes inherited from KSaneIface::KSaneOptionWidget | |
QLabel * | m_label |
QGridLayout * | m_layout |
Detailed Description
A label and a combobox.
Definition at line 41 of file labeled_combo.h.
Constructor & Destructor Documentation
KSaneIface::LabeledCombo::LabeledCombo | ( | QWidget * | parent, |
const QString & | label, | ||
const QStringList & | list | ||
) |
create a label and combobox combination.
- Parameters
-
parent parent widget label is the lext for the label list a stringlist with values the list should contain.
Definition at line 40 of file labeled_combo.cpp.
Member Function Documentation
|
signal |
|
slot |
Add string entries to the combobox.
Definition at line 57 of file labeled_combo.cpp.
|
inlineslot |
Remove all string entries.
Definition at line 65 of file labeled_combo.h.
|
slot |
This function is used to read the current string of the combobox.
Definition at line 79 of file labeled_combo.cpp.
|
slot |
set the current item of the combobox.
Definition at line 96 of file labeled_combo.cpp.
|
slot |
If the given string can be found in the comobox, activate that entry.
If not, the entry is not changed.
Definition at line 69 of file labeled_combo.cpp.
|
slot |
add an icon for a string in the combobox
- Parameters
-
icon the icon to set. str the string for which the pixmap should be set.
Definition at line 85 of file labeled_combo.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.