Skip to content

Commit 8673b60

Browse files
committed
src:fix preview issue
Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
1 parent d7aaf36 commit 8673b60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sessiontab.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ SessionTabBarPreviewWidget::~SessionTabBarPreviewWidget() {
125125
void SessionTabBarPreviewWidget::updateInfo(const QPixmap &view, const QString &tip) {
126126
viewLabel->setPixmap(view);
127127
tipLabel->setText(tip);
128+
tipLabel->setFixedWidth(view.width());
128129
setFixedWidth(view.width());
129130
setFixedHeight(view.height() + tipLabel->height());
130131
}

0 commit comments

Comments
 (0)