MauiKit Controls

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