-
Notifications
You must be signed in to change notification settings - Fork 0
/
DynamicRectForm.ui.qml
54 lines (47 loc) · 1.27 KB
/
DynamicRectForm.ui.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import QtQuick 2.4
Item {
id: itemElement
height: 20
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 20
anchors.rightMargin: 20
property alias rectBackground: rectBackground
property alias rectFrontCount: rectFrontCount
property alias textElement: textElement
Text {
id: textElement
x: 8
y: 3
width: 112
height: 14
text: "Element1"
elide: Text.ElideRight
font.pixelSize: 12
}
Rectangle {
id: rectBackground
property alias rectFrontCount: rectFrontCount
color: "#d2d2d2"
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.leftMargin: 120
anchors.bottomMargin: 0
anchors.topMargin: 0
anchors.rightMargin: 0
Rectangle {
id: rectFrontCount
color: "#d06a5e"
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.rightMargin: 517
anchors.leftMargin: 0
anchors.topMargin: 0
anchors.bottomMargin: 0
}
}
}