diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-25 14:44:01 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-25 14:44:01 +0200 |
commit | 9203de811f049c8e604a9c3065781157fa506155 (patch) | |
tree | 96096d8cbeefd58c988ddb97dcd51fa21873ffb6 /lib/bookmarks/bookmarkitem.h | |
parent | Bookmarks: add BookmarkItem and BookmarkModel (diff) | |
download | smolbote-9203de811f049c8e604a9c3065781157fa506155.tar.xz |
Bookmarks: integrate model/view
- fix addBookmark and search signals
- fix drag'n'drop
- add xbel::write
Diffstat (limited to 'lib/bookmarks/bookmarkitem.h')
-rw-r--r-- | lib/bookmarks/bookmarkitem.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<QVariant> m_data; }; -#endif //SMOLBOTE_BOOKMARKITEM_H +#endif // SMOLBOTE_BOOKMARKITEM_H |