blob: e39bb41605567f9a433a4f6379b0c08bbf2de466 (
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
|
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0
FHardwareKey {
width: 50
height: 50
property alias image : theImage.source
Rectangle {
anchors.fill: parent
border.color: "black"
border.width: 1
radius: 10
smooth: true
gradient: Gradient {
GradientStop {
id: s1
color: "#FF646464"
position: 0.0
}
GradientStop {
id: s2
color: "#FF484848"
position: 0.8
}
GradientStop {
id: s3
color: "#FF323232"
position: 1.0
}
}
}
FWdgtImage {
id: theImage
//anchors.fill: parent
anchors.centerIn: parent
//fillMode: Image.PreserveAspectFit
smooth: true
}
FViewUseCaseSimple {
condition: pressed === true
PropertyChanges { target: s1; position: 1.0 }
PropertyChanges { target: s2; position: 0.2}
PropertyChanges { target: s3; position: 0.0 }
}
}
|