Issue #193 - fix: Hint for bold text (<b></b>) are not correctly handled in the function tips.

This commit is contained in:
Roy Qu 2024-03-08 08:37:21 +08:00
parent 9df669ba08
commit ddc46a72bc
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,7 @@ FunctionTooltipWidget::FunctionTooltipWidget(QWidget *parent) :
mInfoLabel = new QLabel(this);
mInfoLabel->setWordWrap(true);
mInfoLabel->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
mInfoLabel->setTextFormat(Qt::TextFormat::RichText);
mTotalLabel = new QLabel(this);
mTotalLabel->setWordWrap(false);
mTotalLabel->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Preferred);
@ -110,7 +111,6 @@ void FunctionTooltipWidget::previousTip()
void FunctionTooltipWidget::updateTip()
{
mTotalLabel->setVisible(mInfos.length()>1);
mUpButton->setVisible(mInfos.length()>1);
mDownButton->setVisible(mInfos.length()>1);