summaryrefslogtreecommitdiff
path: root/src/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-03-31 11:36:12 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-04-06 12:10:04 +0000
commit4ee403ade29c341001ed769ad9bfcf34b37f32a3 (patch)
tree7584ae2d5cb25528b79873b38364826e6530e756 /src/designer
parentcf9129f19fb180d24f217897cc660ea7c6861e87 (diff)
downloadqttools-4ee403ade29c341001ed769ad9bfcf34b37f32a3.tar.gz
Qt Designer: Simplify selection when moving selections by arrow keys.
Call FormWindow::simplifySelection() when moving with arrow keys as is done when moving using DND to prevent the geometry being applied to children. Task-number: QTBUG-52237 Change-Id: I94849636df6d94bc288982a601e44f54ec6c5cb9 Reviewed-by: Marko Kangas <marko.kangas@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/designer')
-rw-r--r--src/designer/src/components/formeditor/formwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/designer/src/components/formeditor/formwindow.cpp b/src/designer/src/components/formeditor/formwindow.cpp
index 4d1d0abd9..e8a92142f 100644
--- a/src/designer/src/components/formeditor/formwindow.cpp
+++ b/src/designer/src/components/formeditor/formwindow.cpp
@@ -1557,6 +1557,8 @@ void FormWindow::handleArrowKeyEvent(int key, Qt::KeyboardModifiers modifiers)
selection.append(w);
}
+ simplifySelection(&selection);
+
if (selection.isEmpty())
return;