Allow any window to be bounds-checked (#4802)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -1832,7 +1832,7 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
||||
}
|
||||
|
||||
tooltipWidget->moveTo(event->globalPos() + QPoint(16, 16),
|
||||
BaseWindow::BoundsChecker::CursorPosition);
|
||||
widgets::BoundsChecking::CursorPosition);
|
||||
tooltipWidget->setWordWrap(isLinkValid);
|
||||
tooltipWidget->show();
|
||||
}
|
||||
@@ -2687,7 +2687,7 @@ void ChannelView::showUserInfoPopup(const QString &userName,
|
||||
|
||||
QPoint offset(userPopup->width() / 3, userPopup->height() / 5);
|
||||
userPopup->moveTo(QCursor::pos() - offset,
|
||||
BaseWindow::BoundsChecker::CursorPosition);
|
||||
widgets::BoundsChecking::CursorPosition);
|
||||
userPopup->show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user