Skip to content

Commit

Permalink
small fix for qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 14, 2024
1 parent a6d9425 commit d022769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guilib/src/ImageView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ void ImageView::mouseMoveEvent(QMouseEvent * event)
}

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QToolTip::showText(event->globalPosition().toPoint(), QString("%1 %2").arg(scenePoint.x()).arg(scenePoint.y()));
QToolTip::showText(event->globalPosition().toPoint(), pt.x!=0?tr("Depth=%1m Map=(%2,%3,%4)").arg(depth).arg(pt.x).arg(pt.y).arg(pt.z):depth > 0?tr("Depth=%1m").arg(depth):tr("Depth=NA"));
#else
QToolTip::showText(event->globalPos(), pt.x!=0?tr("Depth=%1m Map=(%2,%3,%4)").arg(depth).arg(pt.x).arg(pt.y).arg(pt.z):depth > 0?tr("Depth=%1m").arg(depth):tr("Depth=NA"));
#endif
Expand Down

0 comments on commit d022769

Please sign in to comment.