A builder object for constructing simple input dialogs.
More...
#include <InputDialogBuilder.h++>
A builder object for constructing simple input dialogs.
- Author
- Mark Lindner
◆ InputDialogBuilder()
Constructor.
Begins the construction of an input dialog.
- Parameters
-
parent | The parent widget for the dialog. |
message | The message text to be displayed in the dialog. |
◆ ~InputDialogBuilder()
◆ addSlotArg()
Adds an argument to be passed to the slot when the dialog is accepted.
This is useful for passing application state through the dialog.
- Template Parameters
-
T | The type of the slot argument. This must be a type that can be converted to/from a QVariant. |
- Parameters
-
arg | The slot argument. A copy of the argument is made and stored within the dialog. |
◆ setDefaultInput()
Specifies the default input for the dialog.
◆ setFeature()
Specifies the feature name for the dialog.
◆ setSlot() [1/2]
Specifies a slot to be invoked when the dialog is accepted.
- Parameters
-
target | The target object to invoke the slot on. |
slot | The slot to invoke. The slot must take a single QString argument. |
◆ setSlot() [2/2]
Specifies a slot of the dialog's parent widget to be invoked when the dialog is accepted.
- Parameters
-
slot | The slot to invoke. The slot must take a single QString argument. |
◆ show()
Constructs and displays the dialog.
The documentation for this class was generated from the following file: