Add input logic for scrolling through ContentView
This commit is contained in:
@@ -6,6 +6,8 @@ Column {
|
||||
property var title
|
||||
property var provider
|
||||
property var repeaterModel
|
||||
property bool elemSelected
|
||||
property int xIndex
|
||||
Item {
|
||||
width: 10
|
||||
height: 40
|
||||
@@ -20,13 +22,9 @@ Column {
|
||||
height: 40
|
||||
}
|
||||
Row {
|
||||
//spacing: 80
|
||||
//Item{
|
||||
// width: -10
|
||||
// height: 10
|
||||
//}
|
||||
Repeater {
|
||||
property var provider: modelData
|
||||
//property var yIndex: index
|
||||
//id: inProgressRepeater
|
||||
model: repeaterModel
|
||||
Row{
|
||||
@@ -38,12 +36,30 @@ Column {
|
||||
id: showColumn
|
||||
//property var show: inProgressRepeater.provider.getShow(modelData)
|
||||
property var show: provider.getShow(modelData)
|
||||
Image {
|
||||
Item {
|
||||
property int childHeight: 300
|
||||
property int childWidth: 300 * 0.68
|
||||
property int borderWidth: 7
|
||||
property int borderRadius: 7
|
||||
height: 300
|
||||
width: 300 * 0.68
|
||||
source: showColumn.show.poster
|
||||
mipmap: true
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: (300 * 0.68) + 14
|
||||
Image {
|
||||
height: parent.childHeight
|
||||
width: parent.childWidth
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
source: showColumn.show.poster
|
||||
mipmap: true
|
||||
}
|
||||
Rectangle {
|
||||
color: "transparent"
|
||||
border.color: "orange"
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
border.width: parent.borderWidth
|
||||
radius: parent.borderRadius
|
||||
visible: elemSelected && (index == xIndex)
|
||||
}
|
||||
}
|
||||
Item {width: 1; height: 15}
|
||||
Text {
|
||||
|
||||
Reference in New Issue
Block a user