From 26bb4e236d6bcb244a83abbc7b2f1558fc7bd862 Mon Sep 17 00:00:00 2001 From: nerix Date: Sat, 9 Mar 2024 11:25:20 +0100 Subject: [PATCH] fix(tooltips): hide image label by default (#5232) --- CHANGELOG.md | 1 + src/widgets/TooltipEntryWidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1d93b7d..ca00c7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ - Bugfix: Fixed link info not updating without moving the cursor. (#5178) - Bugfix: Fixed an upload sometimes failing when copying an image from a browser if it contained extra properties. (#5156) - Bugfix: Fixed tooltips getting out of bounds when loading images. (#5186) +- Bugfix: Fixed split header tooltips appearing too tall. (#5232) - Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978) - Dev: Change clang-format from v14 to v16. (#4929) - Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791) diff --git a/src/widgets/TooltipEntryWidget.cpp b/src/widgets/TooltipEntryWidget.cpp index ff569281..7ef7274e 100644 --- a/src/widgets/TooltipEntryWidget.cpp +++ b/src/widgets/TooltipEntryWidget.cpp @@ -24,6 +24,7 @@ TooltipEntryWidget::TooltipEntryWidget(ImagePtr image, const QString &text, this->displayImage_ = new QLabel(); this->displayImage_->setAlignment(Qt::AlignHCenter); this->displayImage_->setStyleSheet("background: transparent"); + this->displayImage_->hide(); this->displayText_ = new QLabel(text); this->displayText_->setAlignment(Qt::AlignHCenter); this->displayText_->setStyleSheet("background: transparent");