39 Q_PROPERTY(
bool pressed READ isPressed NOTIFY pressedChanged FINAL)
40 Q_PROPERTY(
int highlightedIndex READ highlightedIndex NOTIFY highlightedIndexChanged FINAL)
41 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
43 Q_PROPERTY(
QString displayText READ displayText WRITE setDisplayText RESET resetDisplayText NOTIFY displayTextChanged FINAL)
49 Q_PROPERTY(
bool flat READ isFlat WRITE setFlat NOTIFY flatChanged FINAL REVISION(2, 1))
51 Q_PROPERTY(
bool down READ isDown WRITE
setDown RESET resetDown NOTIFY downChanged FINAL REVISION(2, 2))
52 Q_PROPERTY(
bool editable READ isEditable WRITE setEditable NOTIFY editableChanged FINAL REVISION(2, 2))
53 Q_PROPERTY(
QString editText READ editText WRITE setEditText RESET resetEditText NOTIFY editTextChanged FINAL REVISION(2, 2))
54#if QT_CONFIG(validator)
55 Q_PROPERTY(
QValidator *validator READ validator WRITE setValidator NOTIFY validatorChanged FINAL REVISION(2, 2))
57 Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged FINAL REVISION(2, 2))
58 Q_PROPERTY(
bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL REVISION(2, 2))
59 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput NOTIFY acceptableInputChanged FINAL REVISION(2, 2))
61 Q_PROPERTY(
qreal implicitIndicatorWidth READ implicitIndicatorWidth NOTIFY implicitIndicatorWidthChanged FINAL REVISION(2, 5))
62 Q_PROPERTY(
qreal implicitIndicatorHeight READ implicitIndicatorHeight NOTIFY implicitIndicatorHeightChanged FINAL REVISION(2, 5))
63 Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,indicator,popup")
66 Q_PROPERTY(
QString valueRole READ valueRole WRITE setValueRole NOTIFY valueRoleChanged FINAL REVISION(2, 14))
68 Q_PROPERTY(
bool selectTextByMouse READ selectTextByMouse WRITE setSelectTextByMouse NOTIFY selectTextByMouseChanged FINAL REVISION(2, 15))
71 WRITE setImplicitContentWidthPolicy NOTIFY implicitContentWidthPolicyChanged FINAL REVISION(6, 0))
85 bool isPressed() const;
86 void setPressed(
bool pressed);
88 int highlightedIndex() const;
90 int currentIndex() const;
91 void setCurrentIndex(
int index);
97 void resetDisplayText();
100 void setTextRole(const
QString &role);
103 void setValueRole(const
QString &role);
119 void setFlat(
bool flat);
126 bool isEditable() const;
127 void setEditable(
bool editable);
131 void resetEditText();
133#if QT_CONFIG(validator)
138 Qt::InputMethodHints inputMethodHints()
const;
139 void setInputMethodHints(Qt::InputMethodHints hints);
141 bool isInputMethodComposing()
const;
142 bool hasAcceptableInput()
const;
145 qreal implicitIndicatorWidth()
const;
146 qreal implicitIndicatorHeight()
const;
154 bool selectTextByMouse() const;
155 void setSelectTextByMouse(
bool canSelect);
161 WidestTextWhenCompleted
163 Q_ENUM(ImplicitContentWidthPolicy)
165 ImplicitContentWidthPolicy implicitContentWidthPolicy()
const;
166 void setImplicitContentWidthPolicy(ImplicitContentWidthPolicy
policy);
169 void incrementCurrentIndex();
170 void decrementCurrentIndex();
178 void delegateModelChanged();
179 void pressedChanged();
180 void highlightedIndexChanged();
181 void currentIndexChanged();
182 void currentTextChanged();
183 void displayTextChanged();
184 void textRoleChanged();
185 void delegateChanged();
186 void indicatorChanged();
195#if QT_CONFIG(validator)
221#if QT_CONFIG(wheelevent)
222 void wheelEvent(QWheelEvent *
event)
override;
226 void componentComplete()
override;
228 void fontChange(
const QFont &newFont,
const QFont &oldFont)
override;
230 void localeChange(
const QLocale &newLocale,
const QLocale &oldLocale)
override;
232 QFont defaultFont()
const override;
234#if QT_CONFIG(accessibility)
235 QAccessible::Role accessibleRole()
const override;
236 void accessibilityActiveChanged(
bool active)
override;