diff options
Diffstat (limited to 'lib/bookmarks')
-rw-r--r-- | lib/bookmarks/bookmarkswidget.cpp | 6 | ||||
-rw-r--r-- | lib/bookmarks/bookmarkswidget.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/bookmarks/bookmarkswidget.cpp b/lib/bookmarks/bookmarkswidget.cpp index 8aafe37..17e1732 100644 --- a/lib/bookmarks/bookmarkswidget.cpp +++ b/lib/bookmarks/bookmarkswidget.cpp @@ -73,4 +73,8 @@ void BookmarksWidget::expandNodes(BookmarkItem *node) expandNodes(childNode); } } -}
\ No newline at end of file +} + +void BookmarksWidget::closeOthers() { + emit closeOthersSignal(); +} diff --git a/lib/bookmarks/bookmarkswidget.h b/lib/bookmarks/bookmarkswidget.h index f82a512..fa830fa 100644 --- a/lib/bookmarks/bookmarkswidget.h +++ b/lib/bookmarks/bookmarkswidget.h @@ -29,8 +29,11 @@ public: void save(); QAbstractItemModel *model() const; + void closeOthers(); + signals: void openUrl(const QUrl &url); + void closeOthersSignal(); private: void expandNodes(BookmarkItem *node); |