author | unc0rr |
Fri, 12 Sep 2014 00:51:14 +0400 | |
branch | qmlfrontend |
changeset 10402 | 3313336c1ee0 |
child 10422 | 4cf23d4c7624 |
permissions | -rw-r--r-- |
10402 | 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 |
} |