aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks
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 /lib/bookmarks
parentRewrote bookmark manager to use QTreeWidget over QTreeView (diff)
downloadsmolbote-ba757f8a1e528fdf9744094f97d1a652072771f8.tar.xz
Fixed address bar auto-complete
Diffstat (limited to 'lib/bookmarks')
-rw-r--r--lib/bookmarks/bookmarkswidget.cpp5
-rw-r--r--lib/bookmarks/bookmarkswidget.h2
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();