MauiKit Controls
SideBar.qml
28 @warning This control is private and can not be used independently. It exists only as part of the SideBarView implementation and can only be accessed via the exposed alias property `sideBar` in said control.
37 Maui.Theme.inherit: false
45 * @brief The position of the sidebar. 1 means it is full opened, while 0 means it has been hidden.
46 * Values in-between can be used to determined the actual position between the open and hidden states.
49 readonly property alias position : _private.position
54 readonly property bool peeking : control.collapsed && control.position > 0
65 default property alias content : _content.data
68 * @brief If the sidebar should be collapsed or not, this property can be used to dynamically collapse the sidebar on constrained spaces.
69 * For example, using unit metrics to determine an appropriate size-width restriction: if the application window width is less than 400 pixels then collapse the sidebar, or if the SideBarView main content area width is less than an ideal width size, then collapse the sidebar.
74 * @brief Wether the sidebar area can be resized manually by using a cursor or touch gesture. The resizing will be stopped at reaching the minimum and/or maximum values.
80 * By default the sidebar will stay in place, and the SideBarView main area content will be displaced.
85 * @brief If when opened/un-collapsed - after have been hidden - the sidebar should automatically be shown or remain hidden.
91 * @brief The actual size of the width that the sidebar will have in order to reserve a right margin to never exceed the SideBarView full width.
94 readonly property int constrainedWidth : Math.min(control.preferredWidth, control.sideBarView.width*0.9)
122 leftPadding: 0
126 signal closed()
130 opacity: Maui.Style.translucencyAvailable && Maui.Style.enableEffects ? 0.8 : 1
157 value: control.enabled ? (!control.autoShow ? 0 : (control.collapsed && control.autoHide ? 0 : 1)) : 0
const QList< QKeySequence > & close()
const QList< QKeySequence > & open()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.