chore: allow drag to move window when maximized when Qt >= 6.11.2

Resolve: https://github.com/BLumia/pineapple-pictures/issues/184

Also use git version of aqtinstall for Qt 6.11.0+ for Windows
miurahr/aqtinstall#1007
This commit is contained in:
2026-08-19 19:06:44 +08:00
parent 715b3d3ebc
commit 44e4a709c3
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ void TitleBar::mouseMoveEvent(QMouseEvent *event)
}
}
#if defined(Q_OS_WIN)
#if defined(Q_OS_WIN) and QT_VERSION < QT_VERSION_CHECK(6, 11, 2)
const bool shouldAcceptDrag = !window()->isMaximized() && !window()->isFullScreen();
#else
const bool shouldAcceptDrag = !window()->isFullScreen();