diff --git a/components/SplitterColumn.qml b/components/SplitterColumn.qml index 4f64868b50dc74ba5ef4f731439a48b97c2cd473..8b1d56b5b6687a72e22c0e7b2511ec4c3881ce95 100644 --- a/components/SplitterColumn.qml +++ b/components/SplitterColumn.qml @@ -153,12 +153,9 @@ Private.Splitter { anchors.fill: parent anchors.topMargin: (parent.height <= 1) ? -2 : 0 anchors.bottomMargin: (parent.height <= 1) ? -2 : 0 - drag.axis: Qt.XandYAxis // Why doesn't X-axis work? + drag.axis: Drag.XandYAxis // Why doesn't X-axis work? drag.target: handle - CursorArea { - anchors.fill: parent - cursor: CursorArea.SplitVCursor - } + cursorShape: Qt.SplitVCursor } } } diff --git a/components/SplitterRow.qml b/components/SplitterRow.qml index c1466c61ea430682c78ccc0bb3324e03bd2058b6..e8be6acc4cd2265bd5ee4e0c7341bb536d4191f3 100644 --- a/components/SplitterRow.qml +++ b/components/SplitterRow.qml @@ -155,11 +155,7 @@ Private.Splitter { anchors.rightMargin: (parent.width <= 1) ? -2 : 0 drag.axis: Qt.YAxis drag.target: handle - - CursorArea { - anchors.fill: parent - cursor: CursorArea.SplitHCursor - } + cursorShape: Qt.SplitHCursor } } } diff --git a/tests/manual/splitter.qml b/tests/manual/splitter.qml new file mode 100644 index 0000000000000000000000000000000000000000..0747eed90cbb0cc6b2d9239d14b3b3e7fc911036 --- /dev/null +++ b/tests/manual/splitter.qml @@ -0,0 +1,36 @@ +import QtQuick 2.0 +import QtDesktop 0.2 + +ApplicationWindow { + width: 400 + height: 200 + + Row { + SplitterColumn { + width: 200 + height: 200 + + Button { + text: "Button 1" + } + Button { + text: "Button 2" + } + Button { + text: "Button 2" + } + } + + SplitterRow { + width: 200 + height: 200 + + Button { + text: "Button 1" + } + Button { + text: "Button 2" + } + } + } +}