Inherits MSceneWindowModel.
Inherited by MMessageBoxModel, and MPopupListModel.
List of all members.
Member Function Documentation
Adds a given button to the button box.
Nothing happens if the button was already added, otherwise its reference count is increased.
- Parameters:
-
Creates a standard button specified by the button value.
The standard button has a predefined caption.
Returns a pointer to the newly created button. If button was already added, his model is returned instead and no new button is created.
MDialogModel holds ownership over the created button.
- See also:
- M::StandardButton, button(M::StandardButton which)
Returns a pointer to the standard button specified by which.
Returns a null pointer if there is no given standard button in the button box.
Changing the properties of the returned button can make it not be considered as a standard button anymore by the dialog.
Returns a non-const pointer to the button at the given index.
index is relative to buttons property.
MDialogModel::centralWidget |
( |
|
) |
|
Central widget for the dialog.
Non-const getter for centralWidget property. Used by view classes to add the central widget to their internal layouts.
Removes button from the dialog without deleting it.
The ownership of button is passed on to the caller.
- See also:
- addButton()
Returns the standard button enum value corresponding to the given button, or NoButton if the given button isn't a standard button.
- See also:
- button(M::StandardButton)
Property Documentation
bool MDialogModel::alwaysPannable [read, write] |
bool MDialogModel::buttonBoxVisible [read, write] |
MDialogModel::buttons [read, write] |
List of buttons int the button box.
MDialogModel::closeButtonVisible [read, write] |
MDialogModel::contentsVerticalPanningPolicy [read, write] |
bool MDialogModel::modal [read, write] |
MDialogModel::progressIndicatorVisible [read, write] |
Whether the progress indicator on the title bar is visible.
int MDialogModel::resultCode [read, write] |
bool MDialogModel::system [read, write] |
bool MDialogModel::systemModal [read, write] |
QString MDialogModel::title [read, write] |
QString MDialogModel::titleBarIconId [read, write] |
MDialogModel::titleBarVisible [read, write] |