mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
26 lines
605 B
QML
26 lines
605 B
QML
import QtQuick 2.15
|
|
import Utils 1.0
|
|
|
|
//import "common.js" as Common
|
|
|
|
ListView {
|
|
id: root
|
|
interactive: false
|
|
|
|
SystemPalette { id: activePalette }
|
|
|
|
property color defaultColor: Qt.darker(activePalette.window, 1.1)
|
|
property real chunkHeight: height
|
|
property real chunkWidth: model ? width / model.count : 0
|
|
|
|
orientation: ListView.Horizontal
|
|
implicitWidth: 100
|
|
spacing: 0
|
|
delegate: Rectangle {
|
|
id: chunkDelegate
|
|
height: root.chunkHeight
|
|
width: root.chunkWidth
|
|
color: Colors.getChunkColor(object, { "NONE": root.defaultColor })
|
|
}
|
|
}
|
|
|