From 70995e668bf74bd0c69f09001daa970e6c3c9a38 Mon Sep 17 00:00:00 2001 From: renbin Date: Fri, 20 Oct 2023 14:56:05 +0800 Subject: [PATCH] fix: Tab height error under low version dtk. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配紧凑模式引入问题. 修复在低版本DTK下编译的终端标签栏高度不固定问题. Log: 修复低版本DTK下终端标签栏高度错误. --- src/views/tabbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/tabbar.cpp b/src/views/tabbar.cpp index f79dcff92..0294d5cb0 100644 --- a/src/views/tabbar.cpp +++ b/src/views/tabbar.cpp @@ -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 }