diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-25 13:57:05 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-25 13:58:57 -0800 |
commit | 21ed18816acab65e754144239f5f320cdf8c9c21 (patch) | |
tree | 006dae4420d75d4de5575db94bf9f3542c1949ac /qt-ui | |
parent | eb5cbf64eb004620293dc94b446c1833df38bb9c (diff) | |
download | subsurface-21ed18816acab65e754144239f5f320cdf8c9c21.tar.gz |
New profile: fix tooltip display for events
We need to use the transform() of the view, not the tooltip.
Suggested-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/divetooltipitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index b2b72ed58..7171a8a2c 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -244,7 +244,7 @@ void ToolTipItem::refresh(const QPointF& pos) addToolTip(QString::fromUtf8(mb.buffer, mb.len)); free_buffer(&mb); - QList<QGraphicsItem*> items = scene()->items(pos, Qt::IntersectsItemShape, Qt::DescendingOrder, transform()); + QList<QGraphicsItem*> items = scene()->items(pos, Qt::IntersectsItemShape, Qt::DescendingOrder, scene()->views().first()->transform()); Q_FOREACH(QGraphicsItem *item, items) { if (!item->toolTip().isEmpty()) addToolTip(item->toolTip()); |