27 QQmlEngine::setObjectOwnership(
this, QQmlEngine::CppOwnership);
41 switch (m_item->
type()) {
67 return m_item->
title();
117 return !
mApp->bookmarks()->canBeModified(m_item);
122 const QList<BookmarkItem*> items = m_item->
children();
124 ret.reserve(items.size());
QString urlString() const
QString description() const
BookmarkItem * parent() const
QList< BookmarkItem * > children() const
The class exposing the bookmark item to QML.
int visitCount
visit count of bookmark tree node.
QmlBookmarkTreeNode * parent
parent of bookmark tree node.
bool unmodifiable
checks if bookmark tree node is unmodifiable.
@ Invalid
Represents invalid bookmark item.
@ Folder
Represents the bookmark folder.
@ Separator
Represents the bookmark separator.
@ Url
Represents the single bookmark item of type url.
@ Root
Represents the root bookmark item.
QString description
description of bookmark tree node.
QList< QObject * > children
gets children of bookmark tree node.
QmlBookmarkTreeNode(BookmarkItem *item=nullptr)
QString title
title of bookmark tree node.
QString url
url of bookmark tree node.
QString keyword
keyword of bookmark tree node.
Type type
type of bookmark tree node.
static QmlStaticData & instance()
QmlBookmarkTreeNode * getBookmarkTreeNode(BookmarkItem *item)