From 8aa707cfe56604f95c6d5c75e146b70a5272cc5d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 11 Jul 2018 14:39:08 +0200 Subject: Remove PageToolsMenu --- lib/addressbar/addressbar.cpp | 5 ----- lib/addressbar/addressbar.h | 3 --- lib/addressbar/urllineedit.cpp | 5 ----- lib/addressbar/urllineedit.h | 3 --- 4 files changed, 16 deletions(-) (limited to 'lib') diff --git a/lib/addressbar/addressbar.cpp b/lib/addressbar/addressbar.cpp index d570507..355393e 100644 --- a/lib/addressbar/addressbar.cpp +++ b/lib/addressbar/addressbar.cpp @@ -70,8 +70,3 @@ void AddressBar::setUrl(const QUrl &url) void AddressBar::setProgress(int value) { progressBar->setValue(std::min(value, 100)); } - -void AddressBar::setToolsMenu(QMenu *menu) -{ - urlBar->toolsMenu = menu; -} diff --git a/lib/addressbar/addressbar.h b/lib/addressbar/addressbar.h index f1d93c7..6ee9b74 100644 --- a/lib/addressbar/addressbar.h +++ b/lib/addressbar/addressbar.h @@ -14,7 +14,6 @@ class UrlLineEdit; class QProgressBar; -class QMenu; class AddressBar : public QWidget { Q_OBJECT @@ -34,8 +33,6 @@ public slots: void setUrl(const QUrl &url); void setProgress(int value); - void setToolsMenu(QMenu *menu); - private: UrlLineEdit *urlBar; QProgressBar *progressBar; diff --git a/lib/addressbar/urllineedit.cpp b/lib/addressbar/urllineedit.cpp index c106ea4..71b600a 100644 --- a/lib/addressbar/urllineedit.cpp +++ b/lib/addressbar/urllineedit.cpp @@ -58,11 +58,6 @@ UrlLineEdit::UrlLineEdit(QWidget *parent) menu->setAttribute(Qt::WA_DeleteOnClose, true); menu->setMinimumWidth(240); menu->addActions(actions); - menu->addSeparator(); - - if(toolsMenu) { - menu->addMenu(toolsMenu); - } menu->exec(this->mapToGlobal(QPoint(0, height()))); }); diff --git a/lib/addressbar/urllineedit.h b/lib/addressbar/urllineedit.h index d5ab33d..e9868ea 100644 --- a/lib/addressbar/urllineedit.h +++ b/lib/addressbar/urllineedit.h @@ -15,7 +15,6 @@ #include #include -class QMenu; class WebView; class UrlLineEdit : public QLineEdit { @@ -30,8 +29,6 @@ public slots: public: QAction *menuAction = nullptr; - // devMenu action: scripts, etc - QMenu *toolsMenu = nullptr; protected: void focusInEvent(QFocusEvent *event) override; -- cgit v1.2.1