summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_win.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2019-02-07 13:58:12 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2019-02-27 15:58:56 +0000
commitf657c7426329d3763bbf3373b986378c22020269 (patch)
tree8991718a43d5e4983b0f5f9aef6914ad61bce9e4 /src/corelib/kernel/qeventdispatcher_win.cpp
parentca991ee22d3509f8f54ee26d4c30d45319428c8f (diff)
QListView: Fix Shift+click selection for non-default itemAlignment
QListView::setSelection() algorithm is designed for items to occupy their cells completely, which is not the case when itemAlignment is used. The middle part of the selection rect goes beyond the column borders and extra items are selected. Use the introduced cellRectForIndex() instead of rectForIndex() to calculate the middle part correctly. Fixes: QTBUG-73684 Change-Id: I4a1e42a056d56e85a16d8ae0ffe18b78d1d6deb7 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_win.cpp')
0 files changed, 0 insertions, 0 deletions