27 Q_PROPERTY( Policy policy READ policy
28 WRITE setPolicy NOTIFY policyChanged )
30 Q_PROPERTY( QWindow * transientParent READ transientParent
31 WRITE setTransientParent NOTIFY transientParentChanged )
64 RestoreDefaults = 1 << 27
68 Q_DECLARE_FLAGS( Actions, Action )
94 ActionMask = 0x0FFFFFFF,
96 AlternateRole = 1 << 28,
111 void setPolicy( Policy );
112 Policy policy()
const;
114 Q_INVOKABLE
void setTransientParent( QWindow* );
115 Q_INVOKABLE QWindow* transientParent()
const;
117 Q_INVOKABLE Action message(
118 const QString& title,
const QString& text, uint priority = 0,
119 Actions actions = Ok, Action defaultAction = NoAction )
const;
121 Q_INVOKABLE Action information(
122 const QString& title,
const QString& text,
123 Actions actions = Ok, Action defaultAction = NoAction )
const;
125 Q_INVOKABLE Action question(
126 const QString& title,
const QString& text,
127 Actions actions = Actions( Yes | No ),
128 Action defaultAction = NoAction )
const;
130 Q_INVOKABLE QString select(
const QString& title,
131 const QStringList& entries,
int selectedRow = 0 )
const;
133 static ActionRole actionRole( Action action );
136 void transientParentChanged();
137 void policyChanged();
144 std::unique_ptr< PrivateData > m_data;