Inherits from QObject
| Name | |
|---|---|
| enum | Policy { EmbeddedBox, EmbeddedWindow, TopLevelWindow} |
| enum | Action { NoAction = 0, Ok = 1 « 10, Save = 1 « 11, SaveAll = 1 « 12, Open = 1 « 13, Yes = 1 « 14, YesToAll = 1 « 15, No = 1 « 16, NoToAll = 1 « 17, Abort = 1 « 18, Retry = 1 « 19, Ignore = 1 « 20, Close = 1 « 21, Cancel = 1 « 22, Discard = 1 « 23, Help = 1 « 24, Apply = 1 « 25, Reset = 1 « 26, RestoreDefaults = 1 « 27} |
| enum | ActionRole { InvalidRole = -1, AcceptRole, RejectRole, DestructiveRole, UserRole, HelpRole, YesRole, NoRole, ResetRole, ApplyRole, NActionRoles} |
| enum | ButtonLayoutFlag { ActionMask = 0x0FFFFFFF, AlternateRole = 1 « 28, Stretch = 1 « 29, Reverse = 1 « 30} |
| enum | DialogCode { Rejected = 0, Accepted} |
| Name | |
|---|---|
| void | transientParentChanged() |
| void | policyChanged() |
| Name | ||
|---|---|---|
| QskDialog * | instance() | |
| void | setPolicy(Policy policy) | |
| Policy | policy() const | |
| Q_INVOKABLE void | setTransientParent(QWindow * window) | |
| Q_INVOKABLE QWindow * | transientParent() const | |
| Q_INVOKABLE Action | message(const QString & title, const QString & text, int symbolType, Actions actions =Ok, Action defaultAction =NoAction) const | |
| Q_INVOKABLE Action | information(const QString & title, const QString & text, Actions actions =Ok, Action defaultAction =NoAction) const | |
| Q_INVOKABLE Action | warning(const QString & title, const QString & text, Actions actions =Ok, Action defaultAction =NoAction) const | |
| Q_INVOKABLE Action | critical(const QString & title, const QString & text, Actions actions =Ok, Action defaultAction =NoAction) const | |
| Q_INVOKABLE Action | question(const QString & title, const QString & text, Actions actions =Actions(Yes | No), Action defaultAction =NoAction) const |
| Q_INVOKABLE QString | select(const QString & title, const QString & text, const QStringList & entries, int selectedRow =0) const |
| Name | |
|---|---|
| Policy | policy |
| QWindow * | transientParent |
| Enumerator | Value | Description |
|---|---|---|
| EmbeddedBox | ||
| EmbeddedWindow | ||
| TopLevelWindow |
| Enumerator | Value | Description |
|---|---|---|
| NoAction | 0 | |
| Ok | 1 « 10 | |
| Save | 1 « 11 | |
| SaveAll | 1 « 12 | |
| Open | 1 « 13 | |
| Yes | 1 « 14 | |
| YesToAll | 1 « 15 | |
| No | 1 « 16 | |
| NoToAll | 1 « 17 | |
| Abort | 1 « 18 | |
| Retry | 1 « 19 | |
| Ignore | 1 « 20 | |
| Close | 1 « 21 | |
| Cancel | 1 « 22 | |
| Discard | 1 « 23 | |
| Help | 1 « 24 | |
| Apply | 1 « 25 | |
| Reset | 1 « 26 | |
| RestoreDefaults | 1 « 27 |
| Enumerator | Value | Description |
|---|---|---|
| InvalidRole | -1 | |
| AcceptRole | ||
| RejectRole | ||
| DestructiveRole | ||
| UserRole | ||
| HelpRole | ||
| YesRole | ||
| NoRole | ||
| ResetRole | ||
| ApplyRole | ||
| NActionRoles |
| Enumerator | Value | Description |
|---|---|---|
| ActionMask | 0x0FFFFFFF | |
| AlternateRole | 1 « 28 | |
| Stretch | 1 « 29 | |
| Reverse | 1 « 30 |
| Enumerator | Value | Description |
|---|---|---|
| Rejected | 0 | |
| Accepted |
void transientParentChanged()
void policyChanged()
static QskDialog * instance()
void setPolicy(
Policy policy
)
Policy policy() const
Q_INVOKABLE void setTransientParent(
QWindow * window
)
Q_INVOKABLE QWindow * transientParent() const
Q_INVOKABLE Action message(
const QString & title,
const QString & text,
int symbolType,
Actions actions =Ok,
Action defaultAction =NoAction
) const
Q_INVOKABLE Action information(
const QString & title,
const QString & text,
Actions actions =Ok,
Action defaultAction =NoAction
) const
Q_INVOKABLE Action warning(
const QString & title,
const QString & text,
Actions actions =Ok,
Action defaultAction =NoAction
) const
Q_INVOKABLE Action critical(
const QString & title,
const QString & text,
Actions actions =Ok,
Action defaultAction =NoAction
) const
Q_INVOKABLE Action question(
const QString & title,
const QString & text,
Actions actions =Actions(Yes|No),
Action defaultAction =NoAction
) const
Q_INVOKABLE QString select(
const QString & title,
const QString & text,
const QStringList & entries,
int selectedRow =0
) const
Policy policy;
QWindow * transientParent;
Updated on 28 July 2023 at 14:02:29 CEST