forked from qt-creator/qt-creator
QmlDesigner: Fix DragHandler being disabled
The blockDragHandler property got broken when a menu item triggered a model reset as the popup close signal wasn't triggered from the delegate anymore. Task-number: QDS-8133 Change-Id: If135b12a127f5fea8f3f392e0fd6475c4e188e67 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
dd2c4cc6ea
commit
3321261cf3
@@ -262,6 +262,11 @@ Rectangle {
|
||||
// the close of the old popup. Using an int keeps track of number of opened popups.
|
||||
property int menuOpen: 0
|
||||
|
||||
Connections {
|
||||
target: statesEditorModel
|
||||
onModelReset: root.menuOpen = 0
|
||||
}
|
||||
|
||||
// This timer is used to delay the current state animation as it didn't work due to the
|
||||
// repeaters item not being positioned in time resulting in 0 x and y position if the grids
|
||||
// row and column were not changed during the layout algorithm .
|
||||
|
Reference in New Issue
Block a user