1
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:
David Rosca 2015-10-01 17:37:56 +02:00
parent 5e0ca7fed8
commit c68789c217
5 changed files with 0 additions and 22 deletions

View File

@ -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();

View File

@ -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:

View File

@ -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:

View File

@ -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) {

View File

@ -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: