diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-11 14:39:08 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-11 14:39:08 +0200 |
commit | 8aa707cfe56604f95c6d5c75e146b70a5272cc5d (patch) | |
tree | cada71476496ee0bc5f5b76103f4e5d55d3363cb /lib/addressbar | |
parent | Add custom WebView context menu (diff) | |
download | smolbote-8aa707cfe56604f95c6d5c75e146b70a5272cc5d.tar.xz |
Remove PageToolsMenu
Diffstat (limited to 'lib/addressbar')
-rw-r--r-- | lib/addressbar/addressbar.cpp | 5 | ||||
-rw-r--r-- | lib/addressbar/addressbar.h | 3 | ||||
-rw-r--r-- | lib/addressbar/urllineedit.cpp | 5 | ||||
-rw-r--r-- | lib/addressbar/urllineedit.h | 3 |
4 files changed, 0 insertions, 16 deletions
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 <QLineEdit> #include <QTextLayout> -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; |