mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
eb5cbf64eb
commit
21ed18816a
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ void ToolTipItem::refresh(const QPointF& pos)
|
||||||
addToolTip(QString::fromUtf8(mb.buffer, mb.len));
|
addToolTip(QString::fromUtf8(mb.buffer, mb.len));
|
||||||
free_buffer(&mb);
|
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) {
|
Q_FOREACH(QGraphicsItem *item, items) {
|
||||||
if (!item->toolTip().isEmpty())
|
if (!item->toolTip().isEmpty())
|
||||||
addToolTip(item->toolTip());
|
addToolTip(item->toolTip());
|
||||||
|
|
Loading…
Reference in a new issue