From 684dbed706d7e7972499adc94e3c04fec6be6551 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <6d0847b9@opayq.com> Date: Sat, 23 Jan 2021 17:49:02 +0200 Subject: [PATCH] Fixed hidden tooltips when always on top is active (#2384) --- CHANGELOG.md | 1 + src/widgets/helper/ChannelView.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f944a314..4f8f7feb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ - Bugfix: Fix a crash bug that occurred when moving splits across windows and closing the "parent tab" (#2249, #2259) - Bugfix: Fix a crash bug that occurred when the "Limit message height" setting was enabled and a message was being split up into multiple lines. IRC only. (#2329) - Bugfix: Fix anonymous users being pinged by "username" justinfan64537 (#2156, #2352) +- Bugfix: Fixed hidden tooltips when always on top is active (#2384) - Bugfix: Fix CLI arguments (`--help`, `--version`, `--channels`) not being respected (#2368, #2190) - Dev: Updated minimum required Qt framework version to 5.12. (#2210) - Dev: Migrated `Kraken::getUser` to Helix (#2260) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 3e11fffe2..0d91ff315 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1485,6 +1485,7 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event) tooltipWidget->setWordWrap(isLinkValid); tooltipWidget->setText(element->getTooltip()); tooltipWidget->adjustSize(); + tooltipWidget->setWindowFlag(Qt::WindowStaysOnTopHint, true); tooltipWidget->show(); tooltipWidget->raise(); }