Meshroom/meshroom/ui/qml/Controls/MSplitView.qml
2024-09-20 09:14:41 +02:00

22 lines
720 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
SplitView {
id: splitView
handle: Item {
id: handleDelegate
implicitWidth: 5
implicitHeight: 5
property bool hovered: SplitHandle.hovered
property bool pressed: SplitHandle.pressed
Rectangle {
id: handleDisplay
anchors.centerIn: parent
property int handleSize: handleDelegate.pressed ? 3 : 1
width: splitView.orientation === Qt.Horizontal ? handleSize : handleDelegate.width
height: splitView.orientation === Qt.Vertical ? handleSize : handleDelegate.height
color: handleDelegate.hovered ? palette.highlight : palette.base
}
}
}