Skip to content

Commit

Permalink
get height from tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Luch00 committed Sep 29, 2018
1 parent 4ea76f9 commit c1d167b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QtLxBTSC/PluginHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ void PluginHelper::initUi()
qobject_cast<QBoxLayout*>(parent->layout())->insertWidget(0, chat);

chatTabWidget = qobject_cast<QTabWidget*>(utils::findWidget("ChatTabWidget", parent));
chatTabWidget->setMinimumHeight(24);
chatTabWidget->setMaximumHeight(24);
chatTabWidget->setMinimumHeight(chatTabWidget->tabBar()->height());
chatTabWidget->setMaximumHeight(chatTabWidget->tabBar()->height());

connect(chatTabWidget, &QTabWidget::currentChanged, this, &PluginHelper::onTabChange);
chatTabWidget->setMovable(false);
Expand Down

0 comments on commit c1d167b

Please sign in to comment.