KSane
labeledcombo.cpp
70 connect(m_combo, QOverload<int>::of(&QComboBox::activated), this, &LabeledCombo::emitChangedValue);
void valueChanged(const QVariant &value)
OptionUnit valueUnit() const
QVariantList internalValueList() const
bool setValue(const QVariant &value)
QVariantList valueList() const
QString title() const
QVariant value() const
QString description() const
KSaneOptionWidget(QWidget *parent, const QString &labelText)
Create the Widget.
Definition ksaneoptionwidget.cpp:16
void setCurrentText(const QString &)
If the given string can be found in the combobox, activate that entry.
Definition labeledcombo.cpp:91
QString currentText() const
This function is used to read the current string of the combobox.
Definition labeledcombo.cpp:100
void addItem(const QString &text, const QVariant &userData=QVariant())
This function forwards the request to the QComboBox equivalent.
Definition labeledcombo.cpp:135
void addItems(const QStringList &list)
Add string entries to the combobox.
Definition labeledcombo.cpp:80
int count() const
This function forwards the request to the QComboBox equivalent.
Definition labeledcombo.cpp:140
QVariant currentData(int role=Qt::UserRole) const
This function forwards the request to the QComboBox equivalent.
Definition labeledcombo.cpp:130
int currentIndex() const
This function forwards the request to the QComboBox equivalent.
Definition labeledcombo.cpp:145
LabeledCombo(QWidget *parent, const QString &label, const QStringList &list=QStringList())
create a label and combobox combination.
Definition labeledcombo.cpp:19
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QString i18ncp(const char *context, const char *singular, const char *plural, const TYPE &arg...)
Definition hiderectitem.cpp:12
void activated(int index)
count
currentData
void setCurrentIndex(int index)
QVariant itemData(int index, int role) const const
QIcon fromTheme(const QString &name)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
Ignored
void clear()
ToolTipRole
Type
QString toString() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void setSizePolicy(QSizePolicy)
void setToolTip(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:54 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:54 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.