chore: bump deprecated cutoff to Qt 6.4.3 (#6169)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user