aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-08 15:34:11 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-08 15:34:11 +0100
commit6b2326d0b61d588a7b9d1a8a1b2ca434cda1799f (patch)
treed0564ae69966fcf1d8dcc62eded78b2ba1413098 /lib/bookmarks
parentAdded .clang-format (diff)
downloadsmolbote-6b2326d0b61d588a7b9d1a8a1b2ca434cda1799f.tar.xz
Fixed bugs with QDockWidgets
- QDockWidgets are now deleted on close - Opening a new BookmarksWidget no longer leaves an empty dock widget - Fixed crash with deleting dock widgets
Diffstat (limited to 'lib/bookmarks')
-rw-r--r--lib/bookmarks/bookmarkswidget.cpp6
-rw-r--r--lib/bookmarks/bookmarkswidget.h3
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);