added backnavigation and qrc
This commit is contained in:
parent
0b9e8fa067
commit
a32fd01e81
15 changed files with 138 additions and 55 deletions
32
LenaPi/RoundButton.qml
Normal file
32
LenaPi/RoundButton.qml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import QtQuick 2.0
|
||||
|
||||
Rectangle {
|
||||
id: container
|
||||
property alias imageSource: image.source
|
||||
signal clicked();
|
||||
|
||||
border.width: 2
|
||||
border.color: "grey"
|
||||
|
||||
color: "white"
|
||||
|
||||
width: 50
|
||||
height: width
|
||||
radius: width/2
|
||||
|
||||
Image{
|
||||
id: image
|
||||
anchors.centerIn: parent
|
||||
width: 30
|
||||
height: width
|
||||
source: "qrc:/icon_back"
|
||||
}
|
||||
|
||||
MouseArea{
|
||||
id: controlObject
|
||||
anchors.fill: parent
|
||||
onClicked:{
|
||||
container.clicked();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue