-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathTableButton.qml
50 lines (44 loc) · 1.27 KB
/
TableButton.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
import QtQuick 2.12
import QtQuick.Controls 2.12
Button {
// width: buttonWith
// height: parent.height - 20
flat: true
highlighted: false
property string interColor: "#FF724B"
property string iname: "tabName"
property string inamecolor: "white"
contentItem: Item {
// Image {
// visible: selected === 0
// source: "qrc:///images/btn-Monitoring-on.png"
// }
// Image {
// visible: selected !== 0
// source: "qrc:///images/btn-Monitoring-normal.png"
// }
Rectangle {
width: parent.width
height: parent.height
color: interColor
radius: 10
Text {
//id: name
anchors.centerIn: parent
text: qsTr(iname)
color: inamecolor
font.pixelSize: 26
font.bold: true
font.family: "Cambria"
//Behavior on color { NumberAnimation { duration: 300} }
}
//Behavior on color { NumberAnimation { duration: 300} }
}
}
background: Rectangle {
opacity: 0
}
// onClicked: {
// selected = 0
// }
}