aboutsummaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkswidget.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
commiteea675e1f33d29550c9f3e90eb6b6b2402e5ef37 (patch)
tree66172403b143b371324505a39e0d92a4563a3d11 /src/bookmarks/bookmarkswidget.h
parentRefactor Browser::addPlugin to ::loadPlugins (diff)
downloadsmolbote-eea675e1f33d29550c9f3e90eb6b6b2402e5ef37.tar.xz
Add bookmarks toolbar
Bookmarks Toolbar displays the contents of the top-level "Bookmarks Toolbar" folder.
Diffstat (limited to 'src/bookmarks/bookmarkswidget.h')
-rw-r--r--src/bookmarks/bookmarkswidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkswidget.h b/src/bookmarks/bookmarkswidget.h
index 149d2a6..432d936 100644
--- a/src/bookmarks/bookmarkswidget.h
+++ b/src/bookmarks/bookmarkswidget.h
@@ -28,6 +28,7 @@ class BookmarksWidget : public QWidget
public:
explicit BookmarksWidget(const QString &path, QWidget *parent = nullptr);
~BookmarksWidget() override;
+ const BookmarkModel *model() const { return m_model; };
protected:
void editBookmark(const QModelIndex &index);
@@ -44,7 +45,7 @@ public slots:
private:
Ui::BookmarksDialog *ui;
QString m_bookmarksPath;
- BookmarkModel *model;
+ BookmarkModel *m_model;
};
#endif // BOOKMARKSDIALOG_H