Remove offset logic from BaseWindow::moveTo (#4798)

It's now up to each window to offset its coordinates themselves (which is good 👍 )
This commit is contained in:
nerix
2023-08-28 18:38:41 +02:00
committed by GitHub
parent 7cb04bf58b
commit af4233850d
6 changed files with 7 additions and 13 deletions
+2 -2
View File
@@ -1810,7 +1810,7 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
}
}
tooltipWidget->moveTo(event->globalPos(), true,
tooltipWidget->moveTo(event->globalPos() + QPoint(16, 16),
BaseWindow::BoundsChecker::CursorPosition);
tooltipWidget->setWordWrap(isLinkValid);
tooltipWidget->show();
@@ -2665,7 +2665,7 @@ void ChannelView::showUserInfoPopup(const QString &userName,
userPopup->setData(userName, contextChannel, openingChannel);
QPoint offset(userPopup->width() / 3, userPopup->height() / 5);
userPopup->moveTo(QCursor::pos() - offset, false,
userPopup->moveTo(QCursor::pos() - offset,
BaseWindow::BoundsChecker::CursorPosition);
userPopup->show();
}