diff options
Diffstat (limited to 'src/templates/qquickoverlay_p.h')
-rw-r--r-- | src/templates/qquickoverlay_p.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/templates/qquickoverlay_p.h b/src/templates/qquickoverlay_p.h index c5f9b719..a48b54ed 100644 --- a/src/templates/qquickoverlay_p.h +++ b/src/templates/qquickoverlay_p.h @@ -49,24 +49,31 @@ // #include <QtQuick/qquickitem.h> +#include <QtLabsTemplates/private/qquickabstractbutton_p.h> QT_BEGIN_NAMESPACE -class QQuickPanel; +class QQuickOverlayPrivate; -class QQuickOverlay : public QQuickItem +class Q_LABSTEMPLATES_EXPORT QQuickOverlay : public QQuickItem { Q_OBJECT + Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL) public: explicit QQuickOverlay(QQuickItem *parent = Q_NULLPTR); + QQuickItem *background() const; + void setBackground(QQuickItem *background); + Q_SIGNALS: + void backgroundChanged(); void pressed(); void released(); protected: void itemChange(ItemChange change, const ItemChangeData &data) Q_DECL_OVERRIDE; + void geometryChanged(const QRectF &oldGeometry, const QRectF &newGeometry) Q_DECL_OVERRIDE; void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE; void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE; @@ -77,10 +84,11 @@ protected: private: Q_DISABLE_COPY(QQuickOverlay) - QHash<QQuickItem *, QQuickPanel *> m_panels; - int m_modalPanels; + Q_DECLARE_PRIVATE(QQuickOverlay) }; QT_END_NAMESPACE +QML_DECLARE_TYPE(QQuickOverlay) + #endif // QQUICKOVERLAY_P_H |