72 Q_PROPERTY(QString defaultText READ defaultText WRITE setDefaultText)
76 Q_PROPERTY(QIcon defaultIcon READ defaultIcon WRITE setDefaultIcon)
82 Q_PROPERTY(EditableBehavior editBehavior READ editableBehavior WRITE setEditableBehavior)
85 Q_PROPERTY(
bool searchIconVisible READ isSearchIconVisible WRITE setSearchIconVisible)
90 Q_PROPERTY(Qt::ToolButtonStyle toolButtonStyle READ toolButtonStyle WRITE setToolButtonStyle)
92 enum EditableBehavior{
101 Q_ENUM(EditableBehavior)
112 Q_INVOKABLE
void setMenu(QMenu* menu);
113 Q_INVOKABLE QMenu* menu()const;
120 Q_INVOKABLE
void setCompleterMenu(QMenu* menu);
121 Q_INVOKABLE QMenu* completerMenu()const;
123 void setDefaultText(const QString&);
124 QString defaultText()const;
126 void setDefaultIcon(const QIcon&);
127 QIcon defaultIcon()const;
129 void setEditableBehavior(EditableBehavior editBehavior);
130 EditableBehavior editableBehavior()const;
132 void setSearchIconVisible(
bool state);
133 bool isSearchIconVisible() const;
135 Qt::ToolButtonStyle toolButtonStyle() const;
139 void setMinimumContentsLength(
int characters);
142 QComboBox* menuComboBoxInternal() const;
145 QToolButton* toolButtonInternal() const;
151 virtual
bool eventFilter(QObject* target, QEvent* event);
154 void clearActiveAction();
155 void setToolButtonStyle(Qt::ToolButtonStyle style);
161 QVariantList __unittestVariantList(const QVariantList &list);
163 int __unittestInt(
int value);
164 qint64 __unittestInt64(qint64 value);
165 quint64 __unittestUInt64(quint64 value);
166 float __unittestFloat(
float value);
167 double __unittestDouble(
double value);
168 short __unittestShort(
short value);
171 void actionChanged(QAction* action);
178 void onActionSelected(QAction* action);
180 void onEditingFinished();