branch | qmlfrontend |
changeset 10402 | 3313336c1ee0 |
child 10422 | 4cf23d4c7624 |
10401:c31276023295 | 10402:3313336c1ee0 |
---|---|
1 import QtQuick 2.0 |
|
2 |
|
3 Rectangle { |
|
4 id: hwbutton |
|
5 width: 360 |
|
6 height: 360 |
|
7 color: "#15193a" |
|
8 radius: 8 |
|
9 border.width: 4 |
|
10 border.color: "#ea761d" |
|
11 opacity: 1 |
|
12 |
|
13 signal clicked() |
|
14 |
|
15 MouseArea { |
|
16 id: mousearea |
|
17 anchors.fill: parent |
|
18 hoverEnabled: true |
|
19 onEntered: parent.border.color = "#eaea00" |
|
20 onExited: parent.border.color = "#ea761d" |
|
21 onClicked: hwbutton.clicked() |
|
22 } |
|
23 } |