summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <gladhorn@kde.org>2014-09-09 15:49:10 (GMT)
committerFrederik Gladhorn <gladhorn@kde.org>2014-09-09 15:49:10 (GMT)
commit374592256a91f657008ff2eb5f7fb66cba12ce23 (patch)
tree851c5dbb5ec6bc0a4139660b22b0ed6f750d9b97
parent90e6f73e261f7b413e231248892b08080a97821b (diff)
Use tabBar()->hide() instead of setTabBarHidden
-rw-r--r--shell/shell.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/shell.cpp b/shell/shell.cpp
index caec081..afd9564 100644
--- a/shell/shell.cpp
+++ b/shell/shell.cpp
@@ -89,7 +89,7 @@ Shell::Shell( const QString &serializedOptions )
m_tabWidget = new KTabWidget( this );
m_tabWidget->setTabsClosable( true );
m_tabWidget->setElideMode( Qt::ElideRight );
- m_tabWidget->setTabBarHidden( true );
+ m_tabWidget->tabBar()->hide();
m_tabWidget->setDocumentMode( true );
m_tabWidget->setMovable( true );
connect( m_tabWidget, SIGNAL(currentChanged(int)), SLOT(setActiveTab(int)) );
@@ -494,7 +494,7 @@ void Shell::closeTab( int tab )
if( m_tabWidget->count() == 1 )
{
- m_tabWidget->setTabBarHidden( true );
+ m_tabWidget->tabBar()->hide();
m_nextTabAction->setEnabled( false );
m_prevTabAction->setEnabled( false );
}
@@ -507,7 +507,7 @@ void Shell::openNewTab( const QUrl& url, const QString &serializedOptions )
// Tabs are hidden when there's only one, so show it
if( m_tabs.size() == 1 )
{
- m_tabWidget->setTabBarHidden( false );
+ m_tabWidget->tabBar()->show();
m_nextTabAction->setEnabled( true );
m_prevTabAction->setEnabled( true );
}