From e1a901aa98677ebc776a6aaae7af8fa575cb40b0 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 5 Jun 2019 01:22:21 +0700 Subject: [PATCH] Adjust tooltip size after setting the text --- src/widgets/helper/ChannelView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index e4fad5ce0..6a49d2f5b 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1236,8 +1236,8 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event) tooltipWidget->moveTo(this, event->globalPos()); tooltipWidget->setWordWrap(isLinkValid); - tooltipWidget->adjustSize(); tooltipWidget->setText(tooltip); + tooltipWidget->adjustSize(); tooltipWidget->show(); tooltipWidget->raise(); }