diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-02-07 21:54:05 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-02-07 21:54:05 +0100 |
commit | ba757f8a1e528fdf9744094f97d1a652072771f8 (patch) | |
tree | 191faaf2f0f907af8df15cd139a45a3f27b7be0d /lib/bookmarks | |
parent | Rewrote bookmark manager to use QTreeWidget over QTreeView (diff) | |
download | smolbote-ba757f8a1e528fdf9744094f97d1a652072771f8.tar.xz |
Fixed address bar auto-complete
Diffstat (limited to 'lib/bookmarks')
-rw-r--r-- | lib/bookmarks/bookmarkswidget.cpp | 5 | ||||
-rw-r--r-- | lib/bookmarks/bookmarkswidget.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/bookmarks/bookmarkswidget.cpp b/lib/bookmarks/bookmarkswidget.cpp index 6ddd71c..2c89dd4 100644 --- a/lib/bookmarks/bookmarkswidget.cpp +++ b/lib/bookmarks/bookmarkswidget.cpp @@ -105,6 +105,11 @@ BookmarksWidget::~BookmarksWidget() delete ui; } +BookmarksView *BookmarksWidget::model() const +{ + return ui->treeWidget; +} + void BookmarksWidget::save() { /* diff --git a/lib/bookmarks/bookmarkswidget.h b/lib/bookmarks/bookmarkswidget.h index 129a5bc..f2188d2 100644 --- a/lib/bookmarks/bookmarkswidget.h +++ b/lib/bookmarks/bookmarkswidget.h @@ -18,6 +18,7 @@ namespace Ui class BookmarksDialog; } +class BookmarksView; class BookmarksWidget : public QWidget { Q_OBJECT @@ -25,6 +26,7 @@ class BookmarksWidget : public QWidget public: explicit BookmarksWidget(const QString &path, QWidget *parent = 0); ~BookmarksWidget() override; + BookmarksView *model() const; void save(); |