From 9203de811f049c8e604a9c3065781157fa506155 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 25 Sep 2018 14:44:01 +0200 Subject: Bookmarks: integrate model/view - fix addBookmark and search signals - fix drag'n'drop - add xbel::write --- lib/bookmarks/bookmarkitem.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/bookmarks/bookmarkitem.h') diff --git a/lib/bookmarks/bookmarkitem.h b/lib/bookmarks/bookmarkitem.h index 37a9b5d..fd5e67a 100644 --- a/lib/bookmarks/bookmarkitem.h +++ b/lib/bookmarks/bookmarkitem.h @@ -17,8 +17,8 @@ class BookmarkItem { public: enum Type { - Folder, - Bookmark, + Folder = 0, + Bookmark = 1, }; enum Fields { @@ -39,7 +39,7 @@ public: bool removeChildAt(int index, int count = 1); BookmarkItem *takeChild(int index, BookmarkItem *newParent); - BookmarkItem *child(int index); + BookmarkItem *child(int index) const; int childCount() const; QVariant data(int column) const; @@ -65,4 +65,4 @@ private: QVector m_data; }; -#endif //SMOLBOTE_BOOKMARKITEM_H +#endif // SMOLBOTE_BOOKMARKITEM_H -- cgit v1.2.1