![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
#include <bookmarkitem.h>
Public Types | |
| enum | Type { Root , Url , Folder , Separator , Invalid } |
Public Member Functions | |
| BookmarkItem (Type type, BookmarkItem *parent=nullptr) | |
| ~BookmarkItem () | |
| Type | type () const |
| void | setType (Type type) |
| bool | isFolder () const |
| bool | isUrl () const |
| bool | isSeparator () const |
| BookmarkItem * | parent () const |
| QList< BookmarkItem * > | children () const |
| QIcon | icon () |
| void | setIcon (const QIcon &icon) |
| QString | urlString () const |
| QUrl | url () const |
| void | setUrl (const QUrl &url) |
| QString | title () const |
| void | setTitle (const QString &title) |
| QString | description () const |
| void | setDescription (const QString &description) |
| QString | keyword () const |
| void | setKeyword (const QString &keyword) |
| int | visitCount () const |
| void | setVisitCount (int count) |
| void | updateVisitCount () |
| bool | isExpanded () const |
| void | setExpanded (bool expanded) |
| bool | isSidebarExpanded () const |
| void | setSidebarExpanded (bool expanded) |
| void | addChild (BookmarkItem *child, int index=-1) |
| void | removeChild (BookmarkItem *child) |
Static Public Member Functions | |
| static Type | typeFromString (const QString &string) |
| static QString | typeToString (Type type) |
Definition at line 29 of file bookmarkitem.h.
| enum BookmarkItem::Type |
| Enumerator | |
|---|---|
| Root | |
| Url | |
| Folder | |
| Separator | |
| Invalid | |
Definition at line 32 of file bookmarkitem.h.
|
explicit |
Definition at line 21 of file bookmarkitem.cpp.
| BookmarkItem::~BookmarkItem | ( | ) |
Definition at line 33 of file bookmarkitem.cpp.
| void BookmarkItem::addChild | ( | BookmarkItem * | child, |
| int | index = -1 |
||
| ) |
Definition at line 177 of file bookmarkitem.cpp.
| QList< BookmarkItem * > BookmarkItem::children | ( | ) | const |
Definition at line 68 of file bookmarkitem.cpp.
| QString BookmarkItem::description | ( | ) | const |
Definition at line 122 of file bookmarkitem.cpp.
| QIcon BookmarkItem::icon | ( | ) |
Definition at line 73 of file bookmarkitem.cpp.
| bool BookmarkItem::isExpanded | ( | ) | const |
Definition at line 157 of file bookmarkitem.cpp.
| bool BookmarkItem::isFolder | ( | ) | const |
Definition at line 48 of file bookmarkitem.cpp.
| bool BookmarkItem::isSeparator | ( | ) | const |
Definition at line 58 of file bookmarkitem.cpp.
| bool BookmarkItem::isSidebarExpanded | ( | ) | const |
Definition at line 167 of file bookmarkitem.cpp.
| bool BookmarkItem::isUrl | ( | ) | const |
Definition at line 53 of file bookmarkitem.cpp.
| QString BookmarkItem::keyword | ( | ) | const |
Definition at line 132 of file bookmarkitem.cpp.
| BookmarkItem * BookmarkItem::parent | ( | ) | const |
Definition at line 63 of file bookmarkitem.cpp.
| void BookmarkItem::removeChild | ( | BookmarkItem * | child | ) |
Definition at line 193 of file bookmarkitem.cpp.
| void BookmarkItem::setDescription | ( | const QString & | description | ) |
Definition at line 127 of file bookmarkitem.cpp.
| void BookmarkItem::setExpanded | ( | bool | expanded | ) |
Definition at line 162 of file bookmarkitem.cpp.
| void BookmarkItem::setIcon | ( | const QIcon & | icon | ) |
Definition at line 92 of file bookmarkitem.cpp.
| void BookmarkItem::setKeyword | ( | const QString & | keyword | ) |
Definition at line 137 of file bookmarkitem.cpp.
| void BookmarkItem::setSidebarExpanded | ( | bool | expanded | ) |
Definition at line 172 of file bookmarkitem.cpp.
| void BookmarkItem::setTitle | ( | const QString & | title | ) |
Definition at line 117 of file bookmarkitem.cpp.
| void BookmarkItem::setType | ( | BookmarkItem::Type | type | ) |
Definition at line 43 of file bookmarkitem.cpp.
| void BookmarkItem::setUrl | ( | const QUrl & | url | ) |
Definition at line 107 of file bookmarkitem.cpp.
| void BookmarkItem::setVisitCount | ( | int | count | ) |
Definition at line 147 of file bookmarkitem.cpp.
| QString BookmarkItem::title | ( | ) | const |
Definition at line 112 of file bookmarkitem.cpp.
| BookmarkItem::Type BookmarkItem::type | ( | ) | const |
Definition at line 38 of file bookmarkitem.cpp.
|
static |
Definition at line 199 of file bookmarkitem.cpp.
|
static |
Definition at line 216 of file bookmarkitem.cpp.
| void BookmarkItem::updateVisitCount | ( | ) |
Definition at line 152 of file bookmarkitem.cpp.
| QUrl BookmarkItem::url | ( | ) | const |
Definition at line 102 of file bookmarkitem.cpp.
| QString BookmarkItem::urlString | ( | ) | const |
Definition at line 97 of file bookmarkitem.cpp.
| int BookmarkItem::visitCount | ( | ) | const |
Definition at line 142 of file bookmarkitem.cpp.