summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicsview_p.h
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2015-01-04 13:41:25 -0500
committerAndy Maloney <asmaloney@gmail.com>2015-01-13 13:04:40 +0100
commit75f2a0b4ef721b135c42d8e08d70bbdd0ed04c4c (patch)
treea6dca5a8babb7fedc2ac89609bc59c8a3fd89235 /src/widgets/graphicsview/qgraphicsview_p.h
parentf0f5beb0e5db5538b38f07e6ecab89cc292ef609 (diff)
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 <andreas@hanssen.name>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsview_p.h')
-rw-r--r--src/widgets/graphicsview/qgraphicsview_p.h1
1 files changed, 1 insertions, 0 deletions
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;