From c0697ecdda788e1de260610e1f507df9baabae39 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Mon, 4 Nov 2024 11:41:50 +0800 Subject: [PATCH] 1 --- src/ui/articleview.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 2dc1f9cd..900096b6 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -110,8 +110,9 @@ void ArticleView::setupWebview() this->tabWidget = new QTabWidget( this ); baseLayout->addWidget( this->tabWidget ); + QWidget * tab1 = new QWidget( tabWidget ); // Layout - auto * mainLayout = new QVBoxLayout( tabWidget ); + auto * mainLayout = new QVBoxLayout( tab1 ); mainLayout->addWidget( this->webview ); mainLayout->addWidget( this->ftsSearchPanel ); mainLayout->addWidget( this->searchPanel ); @@ -122,7 +123,7 @@ void ArticleView::setupWebview() mainLayout->setContentsMargins( 0, 0, 0, 0 ); - this->tabWidget->addTab( mainLayout, "Dictionaries" ); + this->tabWidget->addTab( tab1, "Dictionaries" ); this->tabWidget->setTabBarAutoHide( true ); // end UI setup