>

Dialog QML Type

Import Statement: import org.mauikit.controls 1.0
Since: org.mauikit.controls 1.0
Inherited By:

Doodle, FileListingDialog, NewDialog, SettingsDialog, ShareDialog, and ShareDialogLinux

Properties

Signals

Methods

Detailed Description

* * * * A scrollable dialog popup, with a Page as its main content. * With default buttons styled, a close button and a predefiend layout. * * The dialog can be used with its main default ColumnLayout or with an Item stacked. * * The dialog contents will be hanlded by a ColumnLayout, so the positioning of its child elements should use the attached property * Layout.fillheight layout.fillWidth, etc.

Property Documentation

acceptButton : Button

* * * Access to the accepted button. * This button is styled to hint about a positive feedback.


actions : Action

* List of actions to be added to the dialog footer bar as styled buttons.


autoClose : bool


closeButton : bool

* * * MouseArea for the close button when the dialog is marked as persistent.


closeButtonVisible : bool

* * * MouseArea for the close button when the dialog is marked as persistent.


defaultButtons : bool

* * * If the Accept and Reject buttons should by displayed in the footer bar.


defaultButtonsLayout : alias


flickable : alias

* * * MouseArea for the close button when the dialog is marked as persistent.


footBar : ToolBar

* * * Dialog footer bar.


headBar : ToolBar

* * * Dialog header bar.


horizontalScrollBarPolicy : int

* * * MouseArea for the close button when the dialog is marked as persistent.


message : string

* Default message text inside the scrollable layout.


page : Page

* * * Access to the default dialog content.


persistent : bool

* * * If the dialog should be closed when it loses focus or not. * If it is marked as persistent a close button is shown in the header bar, other wise the header bar is * hidden if there is not more elements on it.


policy : int

* * * MouseArea for the close button when the dialog is marked as persistent.


rejectButton : Button

* * * Access to the accepted button. * This button is styled to hint about a negative feedback.


scrollView : ScrollView

* * * MouseArea for the close button when the dialog is marked as persistent.


[default] scrollable : list<Item>

* * * Default content will be added to a scrollable ColumnLayout. * When adding a item keep on mind that to correctly have the scrollable behavior * the item must have an implicit height. And the positioning should be done via the Layout attached properties.


stack : list<Item>

* * * To skip the scrollable behavior there is a stacked component to which items can be added, this is also * controlled by a ColumnLayout


template : ListItemTemplate

* * * The templated item used for the default dialog message, holding the icon emblem and the message body. * This property gives access to the template for more detailed tweaking, by adding items or changing its properties.


title : string

* * * Default title text or title of the dialog page.


verticalScrollBarPolicy : int

* * * MouseArea for the close button when the dialog is marked as persistent.


Signal Documentation

accepted()

* Triggered when the accepted button is clicked.


closeTriggered()


rejected()

* Triggered when the rejected button is clicked.


Method Documentation

alert( = message, = level)

* Send an alert message that is shown inline in the dialog. * Depending on the level the color may differ.