added backnavigation and qrc
This commit is contained in:
parent
0b9e8fa067
commit
a32fd01e81
15 changed files with 138 additions and 55 deletions
|
|
@ -7,14 +7,14 @@ Rectangle{
|
|||
property var model
|
||||
property alias imageSource: contentImage.source
|
||||
|
||||
width: 100
|
||||
height: width
|
||||
radius: model.pIsCircleDelegate ? width/2 : 0
|
||||
width: height
|
||||
height: 150
|
||||
radius: model.pIsCircleDelegate ? height/2 : 0
|
||||
color: "blue"
|
||||
|
||||
Image{
|
||||
id: contentImage
|
||||
source: model ? model.pImageSource : "file:///home/ar/source/LenaPi/pics/benjamin.jpeg"
|
||||
source: model ? model.pImageSource : "qrc:/default_image"
|
||||
anchors.centerIn: parent
|
||||
width: parent.width-10
|
||||
height: width
|
||||
|
|
@ -29,7 +29,6 @@ Rectangle{
|
|||
anchors.fill: parent
|
||||
onClicked:{
|
||||
model.onClicked();
|
||||
console.log("circle clicked")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue