diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-17 14:05:10 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-17 14:05:10 +0200 |
commit | 359839213db33bdf95811adc883940eb50fb50e4 (patch) | |
tree | a0b849775afc28e1d4072ca9085645462d8e3c51 /src/addressbar/urllineedit.h | |
parent | Add loading progess bar to the address bar (diff) | |
download | smolbote-359839213db33bdf95811adc883940eb50fb50e4.tar.xz |
Clean up UrlLineEdit
Diffstat (limited to 'src/addressbar/urllineedit.h')
-rw-r--r-- | src/addressbar/urllineedit.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/addressbar/urllineedit.h b/src/addressbar/urllineedit.h index 8f77357..bc23f58 100644 --- a/src/addressbar/urllineedit.h +++ b/src/addressbar/urllineedit.h @@ -10,7 +10,6 @@ #define SMOLBOTE_URLLINEEDIT_H #include "completer.h" -#include "webengine/webview.h" #include <QAction> #include <QLineEdit> #include <QTextLayout> @@ -22,14 +21,19 @@ class UrlLineEdit : public QLineEdit Q_OBJECT public: explicit UrlLineEdit(QWidget *parent = nullptr); - ~UrlLineEdit() override; public slots: - void connectWebView(WebView *view); void setUrl(const QUrl &url); void updateCompleter(const QStringList &l); +public: + // pageMenu action: zoom, print + QAction *pageMenu_action = nullptr; + // devMenu action: scripts, etc + QAction *toolsMenu_action = nullptr; + + protected: void focusInEvent(QFocusEvent *event) override; void focusOutEvent(QFocusEvent *event) override; @@ -39,19 +43,10 @@ private: void setTextFormat(const QTextLayout::FormatRange &format); void clearTextFormat(); - WebView *m_view = nullptr; - QTextLayout::FormatRange m_hostFormat; - // pageMenu action: zoom, print - QAction *m_pageMenuAction = nullptr; - // devMenu action: scripts, etc - QAction *m_toolsMenuAction = nullptr; - // completer Completer *m_listView; - - QMetaObject::Connection urlChangedConnection; }; #endif // SMOLBOTE_URLLINEEDIT_H |