MauiKit Controls

X.qml
1import QtQuick 2.15
2
3import org.mauikit.controls 1.3 as Maui
4
5import QtQuick.Shapes 1.12
6
7Shape
8{
9 id: control
10
11 /**
12 * color : color
13 */
14 property color color : Maui.Theme.backgroundColor
15
16 /**
17 * borderWidth : int
18 */
19 property int borderWidth: 2
20
21 layer.enabled: true
22 layer.samples: 4
23
24 Behavior on color
25 {
26 Maui.ColorTransition{}
27 }
28
29 ShapePath
30 {
31 capStyle: ShapePath.RoundCap
32 strokeWidth: control.borderWidth
33 strokeColor: control.color
34 fillColor: "transparent"
35 strokeStyle: ShapePath.SolidLine
36 startX: 0; startY: 0
37 PathLine { x: control.width; y: control.height }
38
39 }
40
41
42 ShapePath
43 {
44 capStyle: ShapePath.RoundCap
45 strokeWidth: control.borderWidth
46 strokeColor: control.color
47 fillColor: "transparent"
48 strokeStyle: ShapePath.SolidLine
49 startX: control.width; startY: 0
50 PathLine { x: 0; y: control.height }
51 }
52
53 }
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.