mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
BrowserWindow: Add accessor for TabModel
This commit is contained in:
parent
9f4ac24cf8
commit
16c7af63b6
@ -55,6 +55,7 @@
|
||||
#include "historymenu.h"
|
||||
#include "mainmenu.h"
|
||||
#include "downloadsbutton.h"
|
||||
#include "tabmodel.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@ -712,6 +713,14 @@ QAction* BrowserWindow::action(const QString &name) const
|
||||
return m_mainMenu->action(name);
|
||||
}
|
||||
|
||||
TabModel *BrowserWindow::tabModel()
|
||||
{
|
||||
if (!m_tabModel) {
|
||||
m_tabModel = new TabModel(this, this);
|
||||
}
|
||||
return m_tabModel;
|
||||
}
|
||||
|
||||
void BrowserWindow::setWindowTitle(const QString &t)
|
||||
{
|
||||
QString title = t;
|
||||
|
@ -51,6 +51,7 @@ class NavigationBar;
|
||||
class NavigationContainer;
|
||||
class ClickableLabel;
|
||||
class LocationBar;
|
||||
class TabModel;
|
||||
|
||||
class FALKON_EXPORT BrowserWindow : public QMainWindow
|
||||
{
|
||||
@ -120,6 +121,8 @@ public:
|
||||
|
||||
QAction* action(const QString &name) const;
|
||||
|
||||
TabModel *tabModel();
|
||||
|
||||
signals:
|
||||
void startingCompleted();
|
||||
|
||||
@ -214,6 +217,8 @@ private:
|
||||
QMenu* m_superMenu;
|
||||
MainMenu* m_mainMenu;
|
||||
|
||||
TabModel *m_tabModel = nullptr;
|
||||
|
||||
int m_sideBarWidth;
|
||||
int m_webViewWidth;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user