From eccdf68a60f17b9d9f40b817a78f69796c6a0b36 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 5 Jul 2023 11:21:20 +0800 Subject: [PATCH] - fix: Tips for problem is not correctly displayed. --- NEWS.md | 1 + RedPandaIDE/mainwindow.ui | 4 ++-- RedPandaIDE/widgets/ojproblemsetmodel.cpp | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 876f384b..9c2e3662 100644 --- a/NEWS.md +++ b/NEWS.md @@ -29,6 +29,7 @@ Red Panda C++ Version 2.23 - fix: Inherited class/struct members are not correctly shown in the completion suggestions. - enhancement: Sort symbols by their declaration pos in the Class Browser, if not sort by alpha order. - fix: Keyword asm is not correctly parsed. + - fix: Tips for problem is not correctly displayed. Red Panda C++ Version 2.22 diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 47eb5d01..6edc5260 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -515,7 +515,7 @@ QTabWidget::West - 0 + 4 true @@ -965,7 +965,7 @@ QTabWidget::South - 2 + 6 diff --git a/RedPandaIDE/widgets/ojproblemsetmodel.cpp b/RedPandaIDE/widgets/ojproblemsetmodel.cpp index 04920e0c..8df08beb 100644 --- a/RedPandaIDE/widgets/ojproblemsetmodel.cpp +++ b/RedPandaIDE/widgets/ojproblemsetmodel.cpp @@ -456,8 +456,7 @@ QString OJProblemModel::getTooltip() QString s; s=QString("

%1

").arg(mProblem->name); if (!mProblem->description.isEmpty()) - s+=QString("

%1

") - .arg(mProblem->description); + s+=mProblem->description; return s; }