chore: bump deprecated cutoff to Qt 6.4.3 (#6169)

This commit is contained in:
nerix
2025-04-26 13:36:09 +02:00
committed by GitHub
parent 6fe6843cbd
commit 01e7050ffc
15 changed files with 134 additions and 118 deletions
+5 -4
View File
@@ -594,9 +594,9 @@ void BaseWindow::mousePressEvent(QMouseEvent *event)
#ifndef Q_OS_WIN
if (this->flags_.has(FramelessDraggable))
{
this->movingRelativePos = event->localPos();
if (auto *widget =
this->childAt(event->localPos().x(), event->localPos().y()))
this->movingRelativePos = event->position();
auto pos = event->position().toPoint();
if (auto *widget = this->childAt(pos.x(), pos.y()))
{
std::function<bool(QWidget *)> recursiveCheckMouseTracking;
recursiveCheckMouseTracking = [&](QWidget *widget) {
@@ -646,7 +646,8 @@ void BaseWindow::mouseMoveEvent(QMouseEvent *event)
{
if (this->moving)
{
const auto &newPos = event->screenPos() - this->movingRelativePos;
auto newPos =
(event->globalPosition() - this->movingRelativePos).toPoint();
this->move(newPos.x(), newPos.y());
}
}