28 lines
598 B
QML
28 lines
598 B
QML
import QtQuick 2.12
|
|
import QtQuick.Layouts 1.12
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Controls 2.15
|
|
|
|
import Ikinuki.Client 1.0
|
|
|
|
Grid {
|
|
id: root
|
|
clip: true
|
|
property bool selected
|
|
property int yIndex: 0
|
|
property int xIndex: 0
|
|
property int numColumns: 6
|
|
property var provider
|
|
property var shows: []
|
|
columns: numColumns
|
|
topPadding: 20
|
|
Repeater {
|
|
id: repeater
|
|
model: shows
|
|
BrowseShow {
|
|
show: provider.getShow(modelData)
|
|
elemSelected: selected && (index == (yIndex * numColumns + xIndex))
|
|
}
|
|
}
|
|
}
|