- fix: Layout for function tips.
This commit is contained in:
parent
312617728f
commit
47eb9ebecf
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue