summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmintegration.cpp
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2021-03-02 00:05:00 +0100
committerDavid Faure <david.faure@kdab.com>2022-05-09 22:30:35 +0200
commit741afd67529ccc51b2686f59f897b6136e041719 (patch)
treedb810727c037a9f150763fe07a244cbe76b2f57f /src/plugins/platforms/wasm/qwasmintegration.cpp
parent1ae30395f3693d37e8b5c145f95f47ebf4fabc0f (diff)
QAbstractItemDelegate: fix rect given to tooltip handing
* The rect passed to QToolTip::showText() is in view coordinates, not in global coordinates. * Determining this rect in the first place doesn't need calling view->visualRect(index) The view already did this before calling this method, and stored it in option.rect, so just use that. * The widget passed to QToolTip::showText() should be the viewport, that's what option.rect is relative to (thanks Giuseppe!). Found these issues when implementing my own tooltip handing (for a subrect of a delegate) by looking at this code. Pick-to: 6.3 6.2 5.15 Change-Id: I852e5409def28da98137cd0c4c996083e5e45706 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp')
0 files changed, 0 insertions, 0 deletions