Warning, /maui/mauikit/examples/InfoDialog.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004 import org.mauikit.controls as Maui
0005 
0006 Maui.ApplicationWindow
0007 {
0008     id: root
0009 
0010     Maui.Page
0011     {
0012         id: _page
0013         anchors.fill: parent
0014         Maui.Controls.showCSD: true
0015         headBar.forceCenterMiddleContent: true
0016 
0017         Button
0018         {
0019             text: "Open Dialog"
0020             onClicked: _dialog.open()
0021 
0022             anchors.centerIn: parent
0023         }
0024 
0025         Maui.InfoDialog
0026         {
0027             id: _dialog
0028             title: "Hello"
0029             message: "Information about some important action to be reviewed, or just plain information."
0030 
0031             template.iconSource: "dialog-warning"
0032 
0033             standardButtons: Dialog.Close | Dialog.Apply
0034 
0035             onRejected: close()
0036             onApplied: alert("Are you sure? Alert example.", 2)
0037 
0038             Rectangle //an extra child element
0039             {
0040                 color: "yellow"
0041                 Layout.fillWidth: true
0042                 implicitHeight: 68
0043             }
0044         }
0045     }
0046 }
0047