MauiKit Controls

DialogWindow.qml
1/*
2 * Copyright 2018 Camilo Higuita <milo.h@aol.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtQuick
21
22import QtQuick.Controls
23
24import org.mauikit.controls 1.3 as Maui
25
26import "private" as Private
27
28/**
29 * @inherit QtQuick.Window
30 * @brief A window that provides some basic features needed for most applications.
31 */
32
33Private.BaseWindow
35 id: control
36
37 isDialog: true
38
39 /**
40 * @brief The default content of this dialog window. This is handled by a MauiKit Page
41 * @property list<QtObject> DialogWindow::content
42 */
43 default property alias content : _page.content
44
45 /**
46 * @brief An alias to the MauiKit Page filling the dialog window. All the children content of this control will be parented by the Page.
47 * @property Page DialogWindow::page
48 */
49 readonly property alias page: _page
50 maximumWidth: 900
51
52 Maui.Page
53 {
54 id: _page
55 anchors.fill: parent
56 title: control.title
57 Maui.Controls.showCSD: true
58 Maui.Theme.inherit: true
59 }
60}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.