fix: tooltips showing out-of-bounds after loading images (#5186)
This commit is contained in:
@@ -531,14 +531,29 @@ void BaseWindow::leaveEvent(QEvent *)
|
||||
|
||||
void BaseWindow::moveTo(QPoint point, widgets::BoundsChecking mode)
|
||||
{
|
||||
this->lastBoundsCheckPosition_ = point;
|
||||
this->lastBoundsCheckMode_ = mode;
|
||||
widgets::moveWindowTo(this, point, mode);
|
||||
}
|
||||
|
||||
void BaseWindow::showAndMoveTo(QPoint point, widgets::BoundsChecking mode)
|
||||
{
|
||||
this->lastBoundsCheckPosition_ = point;
|
||||
this->lastBoundsCheckMode_ = mode;
|
||||
widgets::showAndMoveWindowTo(this, point, mode);
|
||||
}
|
||||
|
||||
bool BaseWindow::applyLastBoundsCheck()
|
||||
{
|
||||
if (this->lastBoundsCheckMode_ == widgets::BoundsChecking::Off)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
this->moveTo(this->lastBoundsCheckPosition_, this->lastBoundsCheckMode_);
|
||||
return true;
|
||||
}
|
||||
|
||||
void BaseWindow::resizeEvent(QResizeEvent *)
|
||||
{
|
||||
// Queue up save because: Window resized
|
||||
|
||||
Reference in New Issue
Block a user