mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 03:27:34 +02:00
22 lines
720 B
QML
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
|
|
}
|
|
}
|
|
}
|