enable word wrap in tooltip

This commit is contained in:
fourtf 2020-08-22 11:54:06 +02:00
parent 83b6fad8e6
commit 048a6f661d

View file

@ -727,7 +727,7 @@ void SplitHeader::enterEvent(QEvent *event)
auto tooltip = TooltipWidget::instance();
tooltip->setText(this->tooltipText_);
tooltip->setWordWrap(false);
tooltip->setWordWrap(true);
tooltip->adjustSize();
auto pos = this->mapToGlobal(this->rect().bottomLeft()) +
QPoint((this->width() - tooltip->width()) / 2, 0);