Fix tooltips appearing too large and/or away from the cursor (#4920)

This commit is contained in:
nerix
2023-11-04 19:13:34 +01:00
committed by GitHub
parent 879a63e6f3
commit 5325c7b826
5 changed files with 34 additions and 27 deletions
+5
View File
@@ -91,6 +91,11 @@ bool TooltipEntryWidget::refreshPixmap()
this->displayImage_->setPixmap(pixmap->scaled(this->customImgWidth_,
this->customImgHeight_,
Qt::KeepAspectRatio));
if (this->displayImage_->size() !=
QSize{this->customImgWidth_, this->customImgHeight_})
{
this->adjustSize();
}
}
else
{