MauiKit Controls
CSDControls.qml
12 * @warning This is an implementation template for the CSD window control buttons, for a complete and final implementation please use the WindowControls component.
18 * The window control buttons can be customized, by creating a new theme of button assets, or by picking one from the existing ones.
58 * - The second part is the QML source file, named CSD.qml by convection. If the theme you imagine is not that different from the regular layout, the following snippet of code will do it.
60 * The code consists of a horizontal row layout, where we feed the buttons model and set the component delegate to draw the button.
155 readonly property bool canMaximize: !(Window.window.isDialog) && (Window.window.width !== Window.window.maximumWidth || Window.window.width !== Window.window.minimumWidth || Window.window.height !== Window.window.maximumHeight || Window.window.height !== Window.window.minimumHeight)
161 * A window control button has been clicked. This signal is public and can be mapped to any arbitrary value. Be carefull.
165}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.