aboutsummaryrefslogtreecommitdiff
path: root/src/addressbar/urllineedit.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-02-07 21:54:05 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-02-07 21:54:05 +0100
commitba757f8a1e528fdf9744094f97d1a652072771f8 (patch)
tree191faaf2f0f907af8df15cd139a45a3f27b7be0d /src/addressbar/urllineedit.h
parentRewrote bookmark manager to use QTreeWidget over QTreeView (diff)
downloadsmolbote-ba757f8a1e528fdf9744094f97d1a652072771f8.tar.xz
Fixed address bar auto-complete
Diffstat (limited to 'src/addressbar/urllineedit.h')
-rw-r--r--src/addressbar/urllineedit.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/addressbar/urllineedit.h b/src/addressbar/urllineedit.h
index 4e62128..4c5ce82 100644
--- a/src/addressbar/urllineedit.h
+++ b/src/addressbar/urllineedit.h
@@ -15,7 +15,7 @@
#include <src/webengine/webview.h>
#include "completer.h"
-class QAbstractItemModel;
+class BookmarksView;
class QMenu;
class QLabel;
class UrlLineEdit : public QLineEdit
@@ -24,7 +24,7 @@ class UrlLineEdit : public QLineEdit
public:
explicit UrlLineEdit(QWidget *parent = nullptr);
- void setCompleterModel(QAbstractItemModel *model);
+ void setCompleterModel(BookmarksView *model);
signals:
void addressEntered(const QUrl &url);
@@ -33,7 +33,6 @@ signals:
public slots:
void connectWebView(WebView *view);
void setUrl(const QUrl &url);
- void showSslError(const QString &message);
void updateCompleter(const QString &text);
@@ -56,7 +55,7 @@ private:
QLabel *m_sslLabel;
// completer
- QAbstractItemModel *m_bookmarksModel = nullptr;
+ BookmarksView *m_bookmarksModel = nullptr;
Completer *m_listView;
QMetaObject::Connection urlChangedConnection;