summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2020-03-05 17:56:32 +0100
committerDavid Faure <david.faure@kdab.com>2020-03-16 10:44:26 +0100
commit97422abcfcdf2c5c5b81b9de05ceb7bef6edcf13 (patch)
tree66847c9719a5fdf31f616c58edb6791342b58667 /src/corelib
parentf45d2dc54397fabca25de51fd0c9ec37014e46c8 (diff)
QTreeView: don't call model.index(-1, 0) when using spanning items
drawTree() does QPoint hoverPos = d->viewport->mapFromGlobal(QCursor::pos()); d->hoverBranch = d->itemDecorationAt(hoverPos); and itemDecorationAt does const QModelIndex index = q->indexAt(pos); which might very well be an invalid index. Change-Id: I7db98871543bd7e1c57fcc475d2646757bf2bb42 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions