A dialog for prompting the user with a message and options.
More...
#include <prompt.h>
|
| | PromptDialog (const QString &title, const QString &accept, const QString &reject, const QString &message, QWidget *parent=nullptr) |
| | Constructs a new PromptDialog instance.
|
| void | setType (oclero::qlementine::StatusBadge type) |
| | Sets the type of the status badge.
|
| void | setExtraInfo (const QString &info) |
| | Sets extra information to be displayed in the dialog.
|
| | BaseDialog (const QString &title, double ratio, double screenFraction, QWidget *parent=nullptr) |
| | Constructs a new BaseDialog instance.
|
|
| void | setSize (double ratio, double screenFraction) |
| | Sets the size of the dialog based on the given ratio and screen fraction.
|
| void | setSize (double ratio, double screenFraction, qreal heightFraction) |
| | Sets the size of the dialog based on the given ratio, screen fraction, and height fraction.
|
| QVBoxLayout * | layout () |
| | Returns the layout of the dialog.
|
| QDialogButtonBox * | createButtons (const QString &ok, const QString &cancel) |
| | Creates a button box with OK and Cancel buttons.
|
| void | limitWidth (int minWidth) |
| | Defines the width limits for the dialog.
|
| void | limitHeight (int minHeight) |
| | Defines the heigth limits for the dialog.
|
A dialog for prompting the user with a message and options.
◆ PromptDialog()
| maki::PromptDialog::PromptDialog |
( |
const QString & | title, |
|
|
const QString & | accept, |
|
|
const QString & | reject, |
|
|
const QString & | message, |
|
|
QWidget * | parent = nullptr ) |
Constructs a new PromptDialog instance.
- Parameters
-
| title | The title of the dialog. |
| accept | The text for the accept button. |
| reject | The text for the reject button. |
| message | The message to display in the dialog. |
| parent | The parent widget. |
◆ setExtraInfo()
| void maki::PromptDialog::setExtraInfo |
( |
const QString & | info | ) |
|
Sets extra information to be displayed in the dialog.
- Parameters
-
| info | The extra information text. |
◆ setType()
| void maki::PromptDialog::setType |
( |
oclero::qlementine::StatusBadge | type | ) |
|
Sets the type of the status badge.
- Parameters
-
| type | The new type for the status badge. |
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/widgets/dialogs/prompt.h
- /__w/maki/maki/app/widgets/dialogs/prompt.cpp