From ddc46a72bcc432a2aaee2327b361bd9a4646ea88 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 8 Mar 2024 08:37:21 +0800 Subject: [PATCH] Issue #193 - fix: Hint for bold text () are not correctly handled in the function tips. --- RedPandaIDE/widgets/functiontooltipwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/widgets/functiontooltipwidget.cpp b/RedPandaIDE/widgets/functiontooltipwidget.cpp index 23ec790b..699b5529 100644 --- a/RedPandaIDE/widgets/functiontooltipwidget.cpp +++ b/RedPandaIDE/widgets/functiontooltipwidget.cpp @@ -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);