mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
TabWidget: Add BrowserWindow accessor
This commit is contained in:
parent
0bf881c168
commit
ee2e1e9f78
@ -153,6 +153,11 @@ TabWidget::TabWidget(BrowserWindow* window, QWidget* parent)
|
|||||||
loadSettings();
|
loadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BrowserWindow *TabWidget::browserWindow() const
|
||||||
|
{
|
||||||
|
return m_window;
|
||||||
|
}
|
||||||
|
|
||||||
void TabWidget::loadSettings()
|
void TabWidget::loadSettings()
|
||||||
{
|
{
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
@ -66,9 +66,11 @@ class FALKON_EXPORT TabWidget : public TabStackedWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit TabWidget(BrowserWindow* mainclass, QWidget* parent = 0);
|
explicit TabWidget(BrowserWindow *window, QWidget *parent = nullptr);
|
||||||
~TabWidget();
|
~TabWidget();
|
||||||
|
|
||||||
|
BrowserWindow *browserWindow() const;
|
||||||
|
|
||||||
bool restoreState(const QVector<WebTab::SavedTab> &tabs, int currentTab);
|
bool restoreState(const QVector<WebTab::SavedTab> &tabs, int currentTab);
|
||||||
|
|
||||||
void setCurrentIndex(int index);
|
void setCurrentIndex(int index);
|
||||||
|
Loading…
Reference in New Issue
Block a user