diff options
-rw-r--r-- | share/qtcreator/qmldesigner/newstateseditor/Main.qml | 4 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/newstateseditor/StateThumbnail.qml | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/newstateseditor/Main.qml b/share/qtcreator/qmldesigner/newstateseditor/Main.qml index f38baa7bd4a..9bc9e6eb4b3 100644 --- a/share/qtcreator/qmldesigner/newstateseditor/Main.qml +++ b/share/qtcreator/qmldesigner/newstateseditor/Main.qml @@ -526,6 +526,7 @@ Rectangle { anchors.leftMargin: root.leftMargin ScrollBar.horizontal: StateScrollBar { + id: horizontalBar parent: scrollView x: scrollView.leftPadding y: scrollView.height - height @@ -534,6 +535,7 @@ Rectangle { } ScrollBar.vertical: StateScrollBar { + id: verticalBar parent: scrollView x: scrollView.mirrored ? 0 : scrollView.width - width y: scrollView.topPadding @@ -763,6 +765,8 @@ Rectangle { hasWhenCondition: delegateRoot.hasWhenCondition + scrollViewActive: horizontalBar.active || verticalBar.active + dragParent: scrollView // Fix ScrollView taking over the dragging event diff --git a/share/qtcreator/qmldesigner/newstateseditor/StateThumbnail.qml b/share/qtcreator/qmldesigner/newstateseditor/StateThumbnail.qml index ee1ea8132a4..ce95aa21983 100644 --- a/share/qtcreator/qmldesigner/newstateseditor/StateThumbnail.qml +++ b/share/qtcreator/qmldesigner/newstateseditor/StateThumbnail.qml @@ -55,6 +55,8 @@ Item { property bool hasWhenCondition: false + property bool scrollViewActive: false + property Item dragParent property int visualIndex: 0 @@ -89,7 +91,7 @@ Item { DragHandler { id: dragHandler - enabled: !root.baseState && !root.extendedState + enabled: !root.baseState && !root.extendedState && !root.scrollViewActive onGrabChanged: function (transition, point) { if (transition === PointerDevice.GrabPassive || transition === PointerDevice.GrabExclusive) |