aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks
diff options
context:
space:
mode:
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();