MauiKit Controls

SettingsPage.qml
1import org.mauikit.controls 1.3 as Maui
2
3/**
4 * @inherit ScrollColumn
5 * @brief A friend control for the SettingsDialog. Use for creating subpages for the SettingDialog.
6 *
7 * The usage is quiet simple, just declare a list of children items and those will be positioned into a scrollable column layout. This is handled by a ColumnLayout, so the elements need to use the Layout attached properties.
8 *
9 * @note Consider using the SectionGroup and FlexSectionItem as the children for a cohesive look.
10 *
11 * Checkout the MauiKit ScrollColumn for more inherited properties.
12 *
13 * @code
14 * Component
15 * {
16 * id: _settingsPage2
17 *
18 * Maui.SettingsPage
19 * {
20 * title: "Page2"
21 *
22 * Maui.FlexSectionItem
23 * {
24 * label1.text: "Configuration title"
25 * label2.text: "Description text"
26 *
27 * Switch {}
28 * }
29 * }
30 * }
31 * @endcode
32 */
33Maui.ScrollColumn
34{
35 id: control
36 spacing: Maui.Style.defaultSpacing*2
37
38 /**
39 * @brief The title of the settings sub page.
40 * By default this is set to english word `"Settings"`.
41 */
42 property string title : i18nd("mauikit", "Settings")
43}
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.