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
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)
void addItem(const QIcon &icon, const QString &text, const QVariant &userData)
void addItems(const QStringList &texts)
void clear()
count
currentData
void setCurrentIndex(int index)
currentText
QVariant itemData(int index, int role) const const
QString itemText(int index) const const
void setItemData(int index, const QVariant &value, int role)
void setItemIcon(int index, const QIcon &icon)
void addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment)
void setColumnStretch(int column, int stretch)
QIcon fromTheme(const QString &name)
void setBuddy(QWidget *buddy)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
Ignored
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-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.