aboutsummaryrefslogtreecommitdiff
path: root/src/lib/navigation/urllineedit.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 11:51:51 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 11:51:51 +0100
commit783621c89c6c4c9aeae1bcf907c4395b96c5babd (patch)
treebd4f2addc5f8ee9f65fb9d5949b2aa9b82695fa2 /src/lib/navigation/urllineedit.h
parentFixed crash on startup due to missing browser.filterPath (diff)
downloadsmolbote-783621c89c6c4c9aeae1bcf907c4395b96c5babd.tar.xz
Cleaned up UrlLineEdit
Diffstat (limited to 'src/lib/navigation/urllineedit.h')
-rw-r--r--src/lib/navigation/urllineedit.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/navigation/urllineedit.h b/src/lib/navigation/urllineedit.h
index 8432f14..fb334ec 100644
--- a/src/lib/navigation/urllineedit.h
+++ b/src/lib/navigation/urllineedit.h
@@ -23,15 +23,18 @@
#include <QLineEdit>
#include <QTextLayout>
-#include <QMenu>
-
#include <QListWidget>
+#include <QAction>
+class QMenu;
class UrlLineEdit : public QLineEdit
{
Q_OBJECT
public:
- explicit UrlLineEdit(QWidget *parent = 0);
+ explicit UrlLineEdit(QWidget *parent = nullptr);
+
+ QAction *sslAction();
+ QAction *pageAction();
signals:
void addressEntered(const QUrl &url);
@@ -47,18 +50,15 @@ protected:
private slots:
void showCompleter(const QString &text);
- void showMenu();
- void copyUrl();
- void pasteUrl();
- void pasteUrlAndGo();
- void bookmarkUrl();
private:
void setTextFormat(const QTextLayout::FormatRange &format);
void clearTextFormat();
QTextLayout::FormatRange m_hostFormat;
- QMenu *m_contextMenu;
+
+ QAction *m_sslAction = nullptr;
+ QAction *m_pageAction = nullptr;
QMenu *m_menu;
QListWidget *listWidget;