mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[TabWidget] Renamed getTabBar() to just tabBar()
This commit is contained in:
parent
b7016a70ee
commit
aa248893c1
|
@ -232,7 +232,7 @@ void BrowserWindow::postLaunch()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Something went really wrong .. add one tab
|
// Something went really wrong .. add one tab
|
||||||
if (m_tabWidget->getTabBar()->normalTabsCount() <= 0) {
|
if (m_tabWidget->tabBar()->normalTabsCount() <= 0) {
|
||||||
QNetworkRequest request(m_homepage);
|
QNetworkRequest request(m_homepage);
|
||||||
request.setRawHeader("X-QupZilla-UserLoadAction", QByteArray("1"));
|
request.setRawHeader("X-QupZilla-UserLoadAction", QByteArray("1"));
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ void BrowserWindow::postLaunch()
|
||||||
raise();
|
raise();
|
||||||
activateWindow();
|
activateWindow();
|
||||||
|
|
||||||
QTimer::singleShot(0, tabWidget()->getTabBar(), SLOT(ensureVisible()));
|
QTimer::singleShot(0, tabWidget()->tabBar(), SLOT(ensureVisible()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrowserWindow::setupUi()
|
void BrowserWindow::setupUi()
|
||||||
|
@ -309,7 +309,7 @@ void BrowserWindow::setupUi()
|
||||||
m_navigationContainer = new NavigationContainer(this);
|
m_navigationContainer = new NavigationContainer(this);
|
||||||
m_navigationContainer->addWidget(m_navigationToolbar);
|
m_navigationContainer->addWidget(m_navigationToolbar);
|
||||||
m_navigationContainer->addWidget(m_bookmarksToolbar);
|
m_navigationContainer->addWidget(m_bookmarksToolbar);
|
||||||
m_navigationContainer->setTabBar(m_tabWidget->getTabBar());
|
m_navigationContainer->setTabBar(m_tabWidget->tabBar());
|
||||||
|
|
||||||
m_mainSplitter->addWidget(m_tabWidget);
|
m_mainSplitter->addWidget(m_tabWidget);
|
||||||
m_mainSplitter->setCollapsible(0, false);
|
m_mainSplitter->setCollapsible(0, false);
|
||||||
|
|
|
@ -591,7 +591,7 @@ int TabWidget::extraReservedWidth() const
|
||||||
return m_buttonAddTab->width();
|
return m_buttonAddTab->width();
|
||||||
}
|
}
|
||||||
|
|
||||||
TabBar* TabWidget::getTabBar() const
|
TabBar* TabWidget::tabBar() const
|
||||||
{
|
{
|
||||||
return m_tabBar;
|
return m_tabBar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ public:
|
||||||
int lastTabIndex() const;
|
int lastTabIndex() const;
|
||||||
int extraReservedWidth() const;
|
int extraReservedWidth() const;
|
||||||
|
|
||||||
TabBar* getTabBar() const;
|
TabBar* tabBar() const;
|
||||||
ClosedTabsManager* closedTabsManager() const;
|
ClosedTabsManager* closedTabsManager() const;
|
||||||
QList<WebTab*> allTabs(bool withPinned = true);
|
QList<WebTab*> allTabs(bool withPinned = true);
|
||||||
bool canRestoreTab() const;
|
bool canRestoreTab() const;
|
||||||
|
|
|
@ -194,7 +194,7 @@ void WebTab::detach()
|
||||||
void WebTab::attach(BrowserWindow* window)
|
void WebTab::attach(BrowserWindow* window)
|
||||||
{
|
{
|
||||||
m_window = window;
|
m_window = window;
|
||||||
m_tabBar = m_window->tabWidget()->getTabBar();
|
m_tabBar = m_window->tabWidget()->tabBar();
|
||||||
|
|
||||||
m_webView->setBrowserWindow(m_window);
|
m_webView->setBrowserWindow(m_window);
|
||||||
m_tabBar->setTabButton(tabIndex(), m_tabBar->iconButtonPosition(), m_tabIcon);
|
m_tabBar->setTabButton(tabIndex(), m_tabBar->iconButtonPosition(), m_tabIcon);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user