Refactor ContentView to add media browser
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user