DolphinQt: assume QT_VERSION_CHECK >= 6.0.0

This commit is contained in:
Shawn Hoffman
2023-04-19 12:48:20 -07:00
parent ce9413e549
commit 258cf0ff28
4 changed files with 2 additions and 27 deletions

View File

@ -514,12 +514,7 @@ void GBAWidget::mouseMoveEvent(QMouseEvent* event)
{
if (!m_moving)
return;
auto event_pos =
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
event->globalPosition().toPoint();
#else
event->globalPos();
#endif
auto event_pos = event->globalPosition().toPoint();
move(event_pos - m_move_pos - (geometry().topLeft() - pos()));
}