1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 12:21:52 +02:00

a very very basic pathview for covers

This commit is contained in:
Michael Zanetti
2012-07-03 18:04:58 +02:00
parent 5f61e3b1bd
commit bbdb15c53e
2 changed files with 31 additions and 2 deletions

View File

@@ -1,11 +1,37 @@
import QtQuick 1.1
Rectangle {
color: "red"
color: "black"
anchors.fill: parent
// height: 200
// width: 200
PathView {
id: view
anchors.fill: parent
highlight: appHighlight
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
focus: true
model: dynamicModel
delegate: Rectangle {
height: 200
width: 200
color: "blue"
border.color: "black"
border.width: 2
}
path: Path {
startX: 0
startY: 0
// PathAttribute { name: "iconScale"; value: 0.5 }
PathQuad { x: 400; y: 150; controlX: 200; controlY: 75 }
// PathAttribute { name: "iconScale"; value: 1.0 }
// PathQuad { x: 390; y: 50; controlX: 350; controlY: 200 }
// PathAttribute { name: "iconScale"; value: 0.5 }
}
}
}