Skip to content

Commit

Permalink
fix: Tab height error under low version dtk.
Browse files Browse the repository at this point in the history
适配紧凑模式引入问题.
修复在低版本DTK下编译的终端标签栏高度不固定问题.

Log: 修复低版本DTK下终端标签栏高度错误.
  • Loading branch information
rb-union authored and deepin-bot[bot] committed Oct 25, 2023
1 parent 4e58b3d commit 70995e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/tabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ TabBar::TabBar(QWidget *parent) : DTabBar(parent), m_rightClickTab(-1)
QObject::connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::sizeModeChanged, this, [this](){
setTabHeight(DSizeModeHelper::element(COMMONHEIGHT_COMPACT, COMMONHEIGHT));
});
#else
setTabHeight(36);
#endif
}

Expand Down

0 comments on commit 70995e6

Please sign in to comment.