chore!: drop Qt version lower than 5.15.2

This commit is contained in:
blumia committed 2023-05-21 00:36:24 +08:00
1 parent 235e50439f
commit 5aeb0f821f
4 files changed
+6 -48

No files matched your search

-4
View File
@@ -309,13 +309,9 @@ void MainWindow::mousePressEvent(QMouseEvent *event)
void MainWindow::mouseMoveEvent(QMouseEvent *event)
{
if (event->buttons() & Qt::LeftButton && m_clickedOnWindow && !isMaximized()) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
if (!window()->windowHandle()->startSystemMove()) {
move(event->globalPos() - m_oldMousePos);
}
#else
move(event->globalPos() - m_oldMousePos);
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
event->accept();
}