Skip to content

Commit

Permalink
chore: avoid using deprecated function in qt6 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Jun 5, 2023
1 parent c69483e commit a29a180
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ void MainWindow::mouseMoveEvent(QMouseEvent *event)
{
if (event->buttons() & Qt::LeftButton && m_clickedOnWindow && !isMaximized()) {
if (!window()->windowHandle()->startSystemMove()) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
move(event->globalPosition().toPoint() - m_oldMousePos);
#else
move(event->globalPos() - m_oldMousePos);
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
}
event->accept();
}
Expand Down

0 comments on commit a29a180

Please sign in to comment.