aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/bookmarkitem.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-09-25 16:49:56 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-09-25 16:49:56 +0200
commite0badcc7ef354b4bfdeedfde8f5ec3e82c27e741 (patch)
treecd997551fcd5c67c770d55f8182f678666fef240 /lib/bookmarks/bookmarkitem.cpp
parentBookmarks: integrate model/view (diff)
downloadsmolbote-e0badcc7ef354b4bfdeedfde8f5ec3e82c27e741.tar.xz
Bookmarks: add tags and description fields to xbel
Diffstat (limited to 'lib/bookmarks/bookmarkitem.cpp')
-rw-r--r--lib/bookmarks/bookmarkitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bookmarks/bookmarkitem.cpp b/lib/bookmarks/bookmarkitem.cpp
index ff78eb5..67b13b0 100644
--- a/lib/bookmarks/bookmarkitem.cpp
+++ b/lib/bookmarks/bookmarkitem.cpp
@@ -41,7 +41,7 @@ bool BookmarkItem::appendChild(BookmarkItem *childItem)
{
// Only folders can have children, so only append them on folders
// This way, we don't need to add checks to the other methods
- if(m_type == Folder) {
+ if(m_type == Folder || m_type == Root) {
m_children.append(childItem);
return true;
}
@@ -51,7 +51,7 @@ bool BookmarkItem::appendChild(BookmarkItem *childItem)
bool BookmarkItem::insertChild(int position, BookmarkItem *childItem)
{
- if(m_type == Folder) {
+ if(m_type == Folder || m_type == Root) {
m_children.insert(position, childItem);
return true;
}
@@ -87,7 +87,7 @@ int BookmarkItem::childCount() const
return m_children.count();
}
-QVariant BookmarkItem::data(int column) const
+QVariant BookmarkItem::data(Fields column) const
{
return m_data.value(column);
}