Refactor ContentView to add media browser

This commit is contained in:
2022-09-08 23:14:42 -06:00
parent 34aa28529d
commit 3849efdbda
13 changed files with 322 additions and 15 deletions
@@ -0,0 +1,27 @@
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))
}
}
}