mirror of
https://github.com/zbanks/radiance.git
synced 2026-01-23 12:01:07 +01:00
- Save Frequency to JSON - Fix selection bug when dragging tiles - Add logo to main screen
51 lines
1.1 KiB
QML
51 lines
1.1 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.2
|
|
import QtQuick.Controls 2.2
|
|
import radiance 1.0
|
|
import "."
|
|
|
|
VideoNodeTile {
|
|
id: tile;
|
|
|
|
normalHeight: 300;
|
|
normalWidth: 220;
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent;
|
|
anchors.leftMargin: 10
|
|
anchors.rightMargin: 10
|
|
anchors.bottomMargin: 5
|
|
anchors.topMargin: 5
|
|
|
|
RadianceTileTitle {
|
|
Layout.fillWidth: true
|
|
text: tile.videoNode.name ? tile.videoNode.name : "Light Output"
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
Layout.margins: 5
|
|
layer.enabled: true
|
|
|
|
LightOutputPreview {
|
|
id: vnr
|
|
videoNode: tile.videoNode
|
|
anchors.fill: parent
|
|
}
|
|
BusyBrokenIndicator {
|
|
anchors.fill: parent
|
|
videoNode: vnr.videoNode
|
|
}
|
|
}
|
|
}
|
|
Keys.onPressed: {
|
|
if (event.modifiers == Qt.NoModifier) {
|
|
if (event.key == Qt.Key_R) {
|
|
videoNode.reload();
|
|
reloaded();
|
|
}
|
|
}
|
|
}
|
|
}
|