Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/labeledcombo.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | |||||
90 | { | 90 | { | ||
91 | m_combo->setCurrentIndex(i); | 91 | m_combo->setCurrentIndex(i); | ||
92 | } | 92 | } | ||
93 | void LabeledCombo::clear() | 93 | void LabeledCombo::clear() | ||
94 | { | 94 | { | ||
95 | m_combo->clear(); | 95 | m_combo->clear(); | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | QVariant LabeledCombo::currentData(int role) const | ||||
99 | { | ||||
100 | return m_combo->currentData(role); | ||||
101 | } | ||||
102 | | ||||
103 | void LabeledCombo::addItem(const QString &text, const QVariant &userData) | ||||
104 | { | ||||
105 | m_combo->addItem(text, userData); | ||||
106 | } | ||||
107 | | ||||
108 | int LabeledCombo::count() const | ||||
109 | { | ||||
110 | return m_combo->count(); | ||||
111 | } | ||||
112 | | ||||
113 | int LabeledCombo::currentIndex() const | ||||
114 | { | ||||
115 | return m_combo->currentIndex(); | ||||
116 | } | ||||
117 | | ||||
118 | | ||||
98 | } // NameSpace KSaneIface | 119 | } // NameSpace KSaneIface |