diff options
Diffstat (limited to 'lib')
-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; |