15 Q_PROPERTY(
bool open READ isOpen WRITE setOpen NOTIFY openChanged )
16 Q_PROPERTY(
bool modal READ isModal WRITE setModal NOTIFY modalChanged )
17 Q_PROPERTY(
bool fading READ isFading NOTIFY fadingChanged )
19 Q_PROPERTY(
bool overlay READ hasOverlay
20 WRITE setOverlay RESET resetOverlay NOTIFY overlayChanged )
22 Q_PROPERTY( uint priority READ priority WRITE setPriority NOTIFY priorityChanged )
27 QSK_SUBCONTROLS( Overlay )
32 DeleteOnClose = 1 << 0,
33 CloseOnPressOutside = 1 << 1
37 Q_DECLARE_FLAGS( PopupFlags, PopupFlag )
39 QskPopup( QQuickItem* parent =
nullptr );
42 void setPopupFlags( PopupFlags );
43 PopupFlags popupFlags()
const;
45 void setPopupFlag( PopupFlag,
bool on =
true );
46 bool testPopupFlag( PopupFlag )
const;
48 void setModal(
bool on =
true );
51 void setOverlay(
bool on =
true );
53 bool hasOverlay()
const;
56 void setPriority( uint );
57 uint priority()
const;
60 bool isClosed()
const;
62 bool isFading()
const;
63 qreal fadingFactor()
const;
66 virtual QRectF overlayRect()
const;
78 void openChanged(
bool );
79 void fadingChanged(
bool );
81 void modalChanged(
bool );
82 void overlayChanged(
bool );
83 void priorityChanged( uint );
89 bool event( QEvent* )
override;
90 void focusInEvent( QFocusEvent* )
override;
91 void focusOutEvent( QFocusEvent* )
override;
92 void keyPressEvent( QKeyEvent* )
override;
96 const QQuickItem::ItemChangeData& )
override;
98 virtual QQuickItem* focusSuccessor()
const;
101 void grabFocus(
bool );
104 void show() =
delete;
105 void hide() =
delete;
106 void setVisible(
bool ) =
delete;
108 void updateInputGrabber();
111 std::unique_ptr< PrivateData > m_data;