Qt6: Several methods of QMouseEvent are deprecated since Qt 6.0

This commit is contained in:
wmayer
2024-09-11 16:33:19 +02:00
parent 3b91fd33e0
commit 77711e6459
2 changed files with 24 additions and 4 deletions

View File

@@ -308,7 +308,11 @@ void ToolBarGrip::mouseMoveEvent(QMouseEvent *me)
return;
}
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
QPoint pos = me->globalPos();
#else
QPoint pos = me->globalPosition().toPoint();
#endif
QRect rect(toolbar->mapToGlobal(QPoint(0,0)), toolbar->size());
// if mouse did not leave the area of toolbar do not continue with undocking it