summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstyle.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-02-17 16:01:20 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-02-25 05:29:03 +0100
commit02e0c30a8aad785343ba1cddba82ccfe59099445 (patch)
tree6f519c350f7729bc443b493fceb6122be26f24f2 /src/widgets/styles/qstyle.cpp
parenta5ea2f7e9928c651319f8133eeb0fcc9fe6df6fb (diff)
QGraphicsView: Clear the rubber band when dragMode changes
Without this change, and ongoing rubber-band selection will not be cleared when the dragmode property changes (e.g. because of a key press) which leaves a rubber-band displayed on the view. Move the rubber-band-clearing code from mouseReleaseEvent into a private helper that is then called from setDragMode. Change-Id: I32c15f7fe4ef2b8002ef5dd58e22f4bb30dd2409 Fixes: QTBUG-65186 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
0 files changed, 0 insertions, 0 deletions