1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[TabWidget] Renamed getTabBar() to just tabBar()

This commit is contained in:
nowrep 2014-04-04 17:14:31 +02:00
parent b7016a70ee
commit aa248893c1
4 changed files with 6 additions and 6 deletions

View File

@ -232,7 +232,7 @@ void BrowserWindow::postLaunch()
}
// Something went really wrong .. add one tab
if (m_tabWidget->getTabBar()->normalTabsCount() <= 0) {
if (m_tabWidget->tabBar()->normalTabsCount() <= 0) {
QNetworkRequest request(m_homepage);
request.setRawHeader("X-QupZilla-UserLoadAction", QByteArray("1"));
@ -245,7 +245,7 @@ void BrowserWindow::postLaunch()
raise();
activateWindow();
QTimer::singleShot(0, tabWidget()->getTabBar(), SLOT(ensureVisible()));
QTimer::singleShot(0, tabWidget()->tabBar(), SLOT(ensureVisible()));
}
void BrowserWindow::setupUi()
@ -309,7 +309,7 @@ void BrowserWindow::setupUi()
m_navigationContainer = new NavigationContainer(this);
m_navigationContainer->addWidget(m_navigationToolbar);
m_navigationContainer->addWidget(m_bookmarksToolbar);
m_navigationContainer->setTabBar(m_tabWidget->getTabBar());
m_navigationContainer->setTabBar(m_tabWidget->tabBar());
m_mainSplitter->addWidget(m_tabWidget);
m_mainSplitter->setCollapsible(0, false);

View File

@ -591,7 +591,7 @@ int TabWidget::extraReservedWidth() const
return m_buttonAddTab->width();
}
TabBar* TabWidget::getTabBar() const
TabBar* TabWidget::tabBar() const
{
return m_tabBar;
}

View File

@ -90,7 +90,7 @@ public:
int lastTabIndex() const;
int extraReservedWidth() const;
TabBar* getTabBar() const;
TabBar* tabBar() const;
ClosedTabsManager* closedTabsManager() const;
QList<WebTab*> allTabs(bool withPinned = true);
bool canRestoreTab() const;

View File

@ -194,7 +194,7 @@ void WebTab::detach()
void WebTab::attach(BrowserWindow* window)
{
m_window = window;
m_tabBar = m_window->tabWidget()->getTabBar();
m_tabBar = m_window->tabWidget()->tabBar();
m_webView->setBrowserWindow(m_window);
m_tabBar->setTabButton(tabIndex(), m_tabBar->iconButtonPosition(), m_tabIcon);