- fix: Layout for function tips.

This commit is contained in:
Roy Qu 2024-05-28 11:11:19 +08:00
parent 312617728f
commit 47eb9ebecf
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Red Panda C++ Version 3.1
- enhancement: Handle problems info from competitive-companion in background thread. - enhancement: Handle problems info from competitive-companion in background thread.
- enhancement: Handle time/memory limits in problems info from competitive-companion in background thread. - enhancement: Handle time/memory limits in problems info from competitive-companion in background thread.
- enhancement: When problems info from competitive-companion received, show tips in the status bar. - enhancement: When problems info from competitive-companion received, show tips in the status bar.
- fix: Layout for function tips.
Red Panda C++ Version 3.0 Red Panda C++ Version 3.0

View File

@ -49,6 +49,9 @@ FunctionTooltipWidget::FunctionTooltipWidget(QWidget *parent) :
layout()->addWidget(mTotalLabel); layout()->addWidget(mTotalLabel);
layout()->addWidget(mDownButton); layout()->addWidget(mDownButton);
layout()->addWidget(mInfoLabel); layout()->addWidget(mInfoLabel);
QSizePolicy policy=mInfoLabel->sizePolicy();
policy.setHorizontalPolicy(QSizePolicy::Expanding);
mInfoLabel->setSizePolicy(policy);
connect(mUpButton,&QPushButton::clicked, connect(mUpButton,&QPushButton::clicked,
this,&FunctionTooltipWidget::previousTip); this,&FunctionTooltipWidget::previousTip);
connect(mDownButton,&QPushButton::clicked, connect(mDownButton,&QPushButton::clicked,