blob: d42267d8dc6729cc466f2ebb7e99ec4a2feb01cd (
plain)
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
64
65
66
67
68
69
70
71
72
73
|
import QtQuick 1.0
QtObject {
property int minimumWidth: 200
property int minimumHeight: 25
property int leftMargin : 8
property int topMargin: 8
property int rightMargin: 8
property int bottomMargin: 8
property Component background:
Component {
id: defaultBackground
Item {
opacity: enabled ? 1 : 0.7
Rectangle {
x: 1
y: 1
width: parent.width-2
height: parent.height-2
color: backgroundColor
radius: 5
}
BorderImage {
anchors.fill: parent
id: backgroundimage
smooth: true
source: "images/lineedit_normal.png"
border.left: 6; border.top: 6
border.right: 50; border.bottom: 6
}
}
}
property Component up:
Component {
id: defaultUp
Item {
anchors.right: parent.right
anchors.top: parent.top
width: 24
height: parent.height/2
Image {
anchors.left: parent.left;
anchors.top: parent.top;
anchors.topMargin: 7
opacity: (upEnabled && enabled) ? (upPressed ? 1 : 0.8) : 0.3
source: "images/spinbox_up.png"
}
}
}
property Component down:
Component {
id: defaultDown
Item {
anchors.right: parent.right
anchors.bottom: parent.bottom
width: 24
height: parent.height/2
Image {
anchors.left: parent.left;
anchors.bottom: parent.bottom;
anchors.bottomMargin: 7
opacity: (downEnabled && enabled) ? (downPressed ? 1 : 0.8) : 0.3
source: "images/spinbox_down.png"
}
}
}
}
|