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
+15 -13
View File
@@ -1956,7 +1956,7 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
if (this->isScrolling_)
{
this->currentMousePosition_ = event->screenPos();
this->currentMousePosition_ = event->globalPosition();
}
// check for word underneath cursor
@@ -2114,8 +2114,9 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
}
}
this->tooltipWidget_->moveTo(event->globalPos() + QPoint(16, 16),
widgets::BoundsChecking::CursorPosition);
this->tooltipWidget_->moveTo(
event->globalPosition().toPoint() + QPoint(16, 16),
widgets::BoundsChecking::CursorPosition);
this->tooltipWidget_->setWordWrap(isLinkValid);
this->tooltipWidget_->show();
}
@@ -2170,7 +2171,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
this->disableScrolling();
}
this->lastLeftPressPosition_ = event->screenPos();
this->lastLeftPressPosition_ = event->globalPosition();
this->isLeftMouseDown_ = true;
if (layout->flags.has(MessageLayoutFlag::Collapsed))
@@ -2195,7 +2196,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
this->disableScrolling();
}
this->lastRightPressPosition_ = event->screenPos();
this->lastRightPressPosition_ = event->globalPosition();
this->isRightMouseDown_ = true;
}
break;
@@ -2224,7 +2225,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
}
else if (this->scrollBar_->isVisible())
{
this->enableScrolling(event->screenPos());
this->enableScrolling(event->globalPosition());
}
}
}
@@ -2256,7 +2257,7 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
this->isDoubleClick_ = false;
// Was actually not a wanted triple-click
if (std::abs(distanceBetweenPoints(this->lastDoubleClickPosition_,
event->screenPos())) > 10.F)
event->globalPosition())) > 10.F)
{
this->clickTimer_.stop();
return;
@@ -2267,7 +2268,7 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
this->isLeftMouseDown_ = false;
if (std::abs(distanceBetweenPoints(this->lastLeftPressPosition_,
event->screenPos())) > 15.F)
event->globalPosition())) > 15.F)
{
return;
}
@@ -2275,7 +2276,8 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
// Triple-clicking a message selects the whole message
if (foundElement && this->clickTimer_.isActive() &&
(std::abs(distanceBetweenPoints(this->lastDoubleClickPosition_,
event->screenPos())) < 10.F))
event->globalPosition())) <
10.F))
{
this->selectWholeMessage(layout.get(), messageIndex);
return;
@@ -2293,7 +2295,7 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
this->isRightMouseDown_ = false;
if (std::abs(distanceBetweenPoints(this->lastRightPressPosition_,
event->screenPos())) > 15.F)
event->globalPosition())) > 15.F)
{
return;
}
@@ -2307,9 +2309,9 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
{
if (this->isScrolling_ && this->scrollBar_->isVisible())
{
if (event->screenPos() == this->lastMiddlePressPosition_)
if (event->globalPosition() == this->lastMiddlePressPosition_)
{
this->enableScrolling(event->screenPos());
this->enableScrolling(event->globalPosition());
}
else
{
@@ -2807,7 +2809,7 @@ void ChannelView::mouseDoubleClickEvent(QMouseEvent *event)
}
this->isDoubleClick_ = true;
this->lastDoubleClickPosition_ = event->screenPos();
this->lastDoubleClickPosition_ = event->globalPosition();
this->clickTimer_.start();
// message under cursor is collapsed