MauiKit Controls
SplitViewItem.qml
17 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-pane.html">This controls inherits from QQC2 Pane, to checkout its inherited properties refer to the Qt Docs.</a>
18 * This is the preferred control to use when adding a new view into the SplitView, since it follows the Maui Style HIG.
21 * @note When this element is being resized by the SplitView handle, and reaches the minimum width, an action to close the view is then suggested and triggered if the pressed event of the handle is released at that minimum width.
28 Maui.Theme.inherit: false
54 * @brief Whether the style of this view will be more compact. A compact style has not border corners or styling.
55 * While a non-compact mode means there is more than on view in the parent SplitView and the views will have rounded corners.
58 readonly property bool compact : Maui.Handy.isMobile || (SplitView.view.count === 1 || SplitView.view.visibleChildren.length <= 1)
70 SplitView.preferredHeight: SplitView.view.orientation === Qt.Vertical ? SplitView.view.height / (SplitView.view.count) : SplitView.view.height
79 leftPadding: SplitView.view.orientation === Qt.Horizontal && splitIndex === 1 && SplitView.view.count > 1 ? padding/2 : padding
80 rightPadding: SplitView.view.orientation === Qt.Horizontal && splitIndex === 0 && SplitView.view.count > 1 ? padding/2 : padding
82 bottomPadding: SplitView.view.orientation === Qt.Vertical && splitIndex === 0 && SplitView.view.count > 1 ? padding/2 : padding
84 topPadding: SplitView.view.orientation === Qt.Vertical && splitIndex === 1 && SplitView.view.count > 1 ? padding/2 : padding
121 opacity: control.SplitView.view.orientation === Qt.Vertical ? (control.minimumHeight) / control.height : (control.minimumWidth) / control.width
126 opacity: control.SplitView.view.orientation === Qt.Vertical ? (control.minimumHeight) / control.height : (control.minimumWidth) / control.width
197 message: i18n("Are you sure you want to close the split view: '%1'?", control.Maui.Controls.title)
216 active: control.Maui.Controls.badgeText && control.Maui.Controls.badgeText.length > 0 && control.visible
304 if(control.SplitView.view.orientation === Qt.Horizontal && control.width === control.minimumWidth)
310 if(control.SplitView.view.orientation === Qt.Vertical && control.height === control.minimumHeight)
An extension to the QQC2 SplitView control, adding some extra functionality.
Definition SplitView.qml:44
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
QString name(StandardAction id)
KGuiItem reset()
QString label(StandardShortcut id)
enabled
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:11:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:11:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.