Meshroom/meshroom/ui/qml/Controls/MSplitView.qml
Candice Bentéjac 0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00

23 lines
745 B
QML

import QtQuick
import QtQuick.Controls
SplitView {
id: splitView
handle: Rectangle {
id: handleDelegate
implicitWidth: 5
implicitHeight: 5
color: palette.window
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
}
}
}