diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2021-06-14 19:09:53 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2021-06-14 19:13:14 +0200 |
| commit | 8d57bfb1aef3b71557bc408154ee028751fd688e (patch) | |
| tree | 22ee6eaa22a3cfc7dfd4f938be16a6e28d7eaf1f /main.qml | |
First commit
There was history before but now there is no more.
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main.qml b/main.qml new file mode 100644 index 0000000..7e4d720 --- /dev/null +++ b/main.qml @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: Unlicense + +import QtQuick 2.12 +import QtQuick.Controls 2.13 +import QtQuick.Layouts 1.6 + +ApplicationWindow { + visible: true + width: 1024 + height: 768 + + SplitView { + anchors.fill: parent + hoverEnabled: true + + handle: Rectangle { + implicitWidth: sidebar.rightPadding + implicitHeight: implicitWidth + color: SplitHandle.pressed ? palette.dark : + (SplitHandle.hovered ? palette.mid : 'transparent') + } + + Video { + id: video + SplitView.fillWidth: true + SplitView.minimumWidth: parent.width/2 + } + + Sidebar { + id: sidebar + video: video + padding: 5 + leftPadding: 0 + focus: true + SplitView.fillHeight: true + SplitView.preferredWidth: 300 + SplitView.minimumWidth: 200 + } + } +} |
