mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-21 03:06:34 +01:00
WebView: Remove unused openNewTab function
This commit is contained in:
parent
5e0ca7fed8
commit
c68789c217
@ -54,18 +54,6 @@ void PopupWebView::loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopupWebView::openNewTab(Qz::NewTabPositionFlags position)
|
|
||||||
{
|
|
||||||
Q_UNUSED(position)
|
|
||||||
|
|
||||||
BrowserWindow* window = mApp->getWindow();
|
|
||||||
|
|
||||||
if (window) {
|
|
||||||
window->tabWidget()->addView(QUrl(), Qz::NT_SelectedTab);
|
|
||||||
window->raise();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void PopupWebView::closeView()
|
void PopupWebView::closeView()
|
||||||
{
|
{
|
||||||
parentWidget()->close();
|
parentWidget()->close();
|
||||||
|
@ -32,7 +32,6 @@ public:
|
|||||||
|
|
||||||
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
||||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
||||||
void openNewTab(Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
@ -105,7 +105,6 @@ public slots:
|
|||||||
void openUrlInNewTab(const QUrl &url, Qz::NewTabPositionFlags position);
|
void openUrlInNewTab(const QUrl &url, Qz::NewTabPositionFlags position);
|
||||||
|
|
||||||
virtual void closeView() = 0;
|
virtual void closeView() = 0;
|
||||||
virtual void openNewTab(Qz::NewTabPositionFlags position) { Q_UNUSED(position) }
|
|
||||||
virtual void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) = 0;
|
virtual void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) = 0;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
|
@ -165,13 +165,6 @@ void TabbedWebView::closeView()
|
|||||||
emit wantsCloseTab(tabIndex());
|
emit wantsCloseTab(tabIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabbedWebView::openNewTab(Qz::NewTabPositionFlags position)
|
|
||||||
{
|
|
||||||
if (m_window) {
|
|
||||||
m_window->tabWidget()->addView(QUrl(), position);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void TabbedWebView::loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position)
|
void TabbedWebView::loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position)
|
||||||
{
|
{
|
||||||
if (m_window) {
|
if (m_window) {
|
||||||
|
@ -49,7 +49,6 @@ public:
|
|||||||
|
|
||||||
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
||||||
void closeView() Q_DECL_OVERRIDE;
|
void closeView() Q_DECL_OVERRIDE;
|
||||||
void openNewTab(Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
|
||||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
Loading…
Reference in New Issue
Block a user