54class ITOMWIDGETS_EXPORT
ComboBox :
public QComboBox
57 Q_PROPERTY(QString defaultText READ defaultText WRITE setDefaultText)
58 Q_PROPERTY(QIcon defaultIcon READ defaultIcon WRITE setDefaultIcon)
59 Q_PROPERTY(
bool forceDefault READ isDefaultForced WRITE forceDefault)
60 Q_PROPERTY(Qt::TextElideMode elideMode READ elideMode WRITE setElideMode)
64 Q_PROPERTY(
ScrollEffect scrollWheelEffect READ scrollWheelEffect WRITE setScrollWheelEffect)
66 Q_PROPERTY(QString currentUserDataAsString READ currentUserDataAsString WRITE setCurrentUserDataAsString)
70 explicit
ComboBox(QWidget* parent = 0);
74 void setDefaultText(const QString&);
75 QString defaultText()const;
78 void setDefaultIcon(const QIcon&);
79 QIcon defaultIcon()const;
83 void forceDefault(
bool forceDefault);
84 bool isDefaultForced()const;
88 void setElideMode(const Qt::TextElideMode& newMode);
89 Qt::TextElideMode elideMode()const;
103 ScrollWithNoVScrollBar
108 Q_ENUM(ScrollEffect);
112 ScrollEffect scrollWheelEffect()
const;
115 void setScrollWheelEffect(ScrollEffect scroll);
118 virtual QSize minimumSizeHint()
const;
120 virtual QSize sizeHint()
const;
123 QString currentUserDataAsString()
const;
127 void setCurrentUserDataAsString(QString userData);
131 virtual void paintEvent(QPaintEvent* event);
132 virtual void changeEvent(QEvent* event);
133 virtual void wheelEvent(QWheelEvent* event);
136 QScopedPointer<ComboBoxPrivate> d_ptr;