chore: clean up mouse drag to resize/move logic a little bit

1. No longer fallback to use move(), since all known platforms
   support startSystemMove(), and it's unlikely going to work
   if it's not supported on a specific platform.
2. Fix titlebar move check missing `window()->`.

This amends a10bbb4e8d
This commit is contained in:
2026-07-18 01:27:36 +08:00
parent a10bbb4e8d
commit a8aa5b5c30
4 changed files with 18 additions and 22 deletions

View File

@@ -54,7 +54,6 @@ private:
bool m_closeHovered = false;
bool m_closePressed = false;
bool m_dragPending = false;
QPoint m_moveStartPos;
};
#endif // TITLEBAR_H