diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-26 15:51:50 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-04-27 16:02:50 +0000 |
commit | d6b32468667a4890cef6061f08c353a0d0cba43e (patch) | |
tree | 270287bd5725b4de6a8edc1b2809eb4adbd51e65 /src/quicktemplates2/qquickitemdelegate_p.h | |
parent | 9e79b19a305960a3df7bd1c90675ba00cd972153 (diff) |
Move highlighted to subclasses that actually use it
Change-Id: I70468b35b2a3a03c6e2d557a67443291697c8b42
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickitemdelegate_p.h')
-rw-r--r-- | src/quicktemplates2/qquickitemdelegate_p.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickitemdelegate_p.h b/src/quicktemplates2/qquickitemdelegate_p.h index 205407a0..429b0ca9 100644 --- a/src/quicktemplates2/qquickitemdelegate_p.h +++ b/src/quicktemplates2/qquickitemdelegate_p.h @@ -52,13 +52,22 @@ QT_BEGIN_NAMESPACE +class QQuickItemDelegatePrivate; + class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickItemDelegate : public QQuickAbstractButton { Q_OBJECT + Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL) public: explicit QQuickItemDelegate(QQuickItem *parent = nullptr); + bool isHighlighted() const; + void setHighlighted(bool highlighted); + +Q_SIGNALS: + void highlightedChanged(); + protected: QFont defaultFont() const override; @@ -67,7 +76,11 @@ protected: #endif protected: - QQuickItemDelegate(QQuickAbstractButtonPrivate &dd, QQuickItem *parent); + QQuickItemDelegate(QQuickItemDelegatePrivate &dd, QQuickItem *parent); + +private: + Q_DISABLE_COPY(QQuickItemDelegate) + Q_DECLARE_PRIVATE(QQuickItemDelegate) }; QT_END_NAMESPACE |