From 75f2a0b4ef721b135c42d8e08d70bbdd0ed04c4c Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Sun, 4 Jan 2015 13:41:25 -0500 Subject: Extend selections in QGraphicsView when selection extension key down If the user has some objects selected and holds down the "extend selection" key (Control on Windows, Command on Mac OS X), clicking and dragging a rubber band selection deselects the current selection. This is counter-intuitive and confusing for users. This commit fixes the behavior so users can extend selections using the rubber band when the proper key is held down. Task-number: QTBUG-6523 Change-Id: Ieda4aaa50adb351c0405f5cb8aae23332eec58a9 Reviewed-by: Andreas Aardal Hanssen --- src/widgets/graphicsview/qgraphicsview_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widgets/graphicsview/qgraphicsview_p.h') diff --git a/src/widgets/graphicsview/qgraphicsview_p.h b/src/widgets/graphicsview/qgraphicsview_p.h index ca87b932e2..546f34ba81 100644 --- a/src/widgets/graphicsview/qgraphicsview_p.h +++ b/src/widgets/graphicsview/qgraphicsview_p.h @@ -134,6 +134,7 @@ public: void updateRubberBand(const QMouseEvent *event); bool rubberBanding; Qt::ItemSelectionMode rubberBandSelectionMode; + Qt::ItemSelectionOperation rubberBandSelectionOperation; #endif int handScrollMotions; -- cgit v1.2.3