Adjust tooltip size after setting the text

This commit is contained in:
rexim 2019-06-05 01:22:21 +07:00
parent 0fb16d150b
commit e1a901aa98

View file

@ -1236,8 +1236,8 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
tooltipWidget->moveTo(this, event->globalPos()); tooltipWidget->moveTo(this, event->globalPos());
tooltipWidget->setWordWrap(isLinkValid); tooltipWidget->setWordWrap(isLinkValid);
tooltipWidget->adjustSize();
tooltipWidget->setText(tooltip); tooltipWidget->setText(tooltip);
tooltipWidget->adjustSize();
tooltipWidget->show(); tooltipWidget->show();
tooltipWidget->raise(); tooltipWidget->raise();
} }