-
Notifications
You must be signed in to change notification settings - Fork 0
/
TasksTabForm.ui.qml
64 lines (56 loc) · 1.45 KB
/
TasksTabForm.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
55
56
57
58
59
60
61
62
63
import QtQuick 2.14
Item {
id: root
width: nativeWidthInactive
height: nativeHeightInactive
property alias mouseArea: mouseArea
property alias root: root
property alias selected: root.selected
property alias imageType: root.imageType
property alias imageColor: root.imageColor
property alias imageSource: image.source
property alias color: topRectangle.color
property bool selected: false
property bool isList: true
property string imageType: "list_"
property string imageColor: "orange"
readonly property int nativeWidthInactive: 79
readonly property int nativeHeightInactive: 76
readonly property int nativeWidthActive: 79
readonly property int nativeHeightActive: 91
signal clicked
Rectangle {
id: topRectangle
color: "#ffffff"
radius: 20
anchors.fill: parent
}
Rectangle {
id: bottomRectangle
height: topRectangle.height / 2
color: topRectangle.color
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
}
Image {
id: image
width: root.width * 0.8
height: width
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: height
sourceSize.width: width
source: "Images/list_orange.svg"
fillMode: Image.PreserveAspectFit
MouseArea {
id: mouseArea
anchors.fill: parent
}
}
}
/*##^##
Designer {
D{i:1;anchors_height:200;anchors_width:200}D{i:2;anchors_width:200}D{i:4;anchors_height:100;anchors_width:100}
}
##^##*/