2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
2019-04-28 14:44:55 +10:00
|
|
|
import QtQuick.Controls 1.4 as Controls1
|
|
|
|
|
|
|
|
//https://doc.qt.io/qt-5/qml-qtquick-controls-splitview.html
|
|
|
|
Controls1.SplitView {
|
2019-05-13 05:57:18 +10:00
|
|
|
id: splitView
|
|
|
|
|
|
|
|
property bool anyHovered: false
|
|
|
|
property bool anyPressed: false
|
|
|
|
property bool anyResizing: false
|
|
|
|
|
2019-07-18 03:34:02 +10:00
|
|
|
property bool manuallyResized: false
|
|
|
|
onAnyResizingChanged: manuallyResized = true
|
2019-05-13 05:57:18 +10:00
|
|
|
|
|
|
|
handleDelegate: Item {
|
|
|
|
readonly property bool hovered: styleData.hovered
|
|
|
|
readonly property bool pressed: styleData.pressed
|
|
|
|
readonly property bool resizing: styleData.resizing
|
|
|
|
|
|
|
|
onHoveredChanged: splitView.anyHovered = hovered
|
|
|
|
onPressedChanged: splitView.anyPressed = pressed
|
|
|
|
onResizingChanged: splitView.anyResizing = resizing
|
|
|
|
}
|
2019-04-28 14:44:55 +10:00
|
|
|
}
|