Merge pull request #1961 from PhenomRetroShare/Add_MessageHideTabBarWithOneTab

Add Message set HideTabBarWithOneTab
This commit is contained in:
defnax 2020-05-21 21:41:51 +02:00 committed by GitHub
commit 3c4627bdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,8 +242,9 @@ MessagesDialog::MessagesDialog(QWidget *parent)
//ui.messageTreeWidget->installEventFilter(this);
// remove close button of the the first tab
ui.tabWidget->hideCloseButton(0);
// remove close button of the the first tab
ui.tabWidget->hideCloseButton(0);
ui.tabWidget->setHideTabBarWithOneTab(true);
int S = QFontMetricsF(font()).height();
QString help_str = tr(