20 Q_PROPERTY( QskDialog::Actions dialogActions
21 READ dialogActions WRITE setDialogActions )
23 Q_PROPERTY( QString title READ title
24 WRITE setTitle NOTIFY titleChanged )
29 QSK_SUBCONTROLS( DialogTitle )
34 QskDialog::Actions dialogActions()
const;
35 void setDialogActions( QskDialog::Actions );
37 void addDialogAction( QskDialog::Action );
38 void addDialogButton(
QskPushButton*, QskDialog::ActionRole );
40 Q_INVOKABLE QskDialog::Action clickedAction()
const;
42 Q_INVOKABLE QskDialog::DialogCode result()
const;
43 Q_INVOKABLE QskDialog::DialogCode exec();
45 void setDefaultDialogAction( QskDialog::Action );
53 void setContentItem( QQuickItem* );
54 QQuickItem* contentItem()
const;
56 void setTitle(
const QString& );
57 QString title()
const;
63 void setContentPadding(
const QMarginsF& );
64 QMarginsF contentPadding()
const;
67 void titleChanged(
const QString& );
69 void finished( QskDialog::DialogCode );
77 virtual void done( QskDialog::DialogCode );
80 void setResult( QskDialog::DialogCode );
82 void keyPressEvent( QKeyEvent* )
override;
84 virtual void updateGeometry();
86 void updateLayout()
override;
88 QSizeF layoutSizeHint( Qt::SizeHint,
const QSizeF& )
const;
94 std::unique_ptr< PrivateData > m_data;