Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <bookmarkitem.h>
Public Member Functions | |
BookmarkItem (const DataVector &data, BookmarkItem *parent=nullptr) | |
~BookmarkItem () | |
BookmarkItem * | parent () const |
void | setParent (BookmarkItem *parent) |
void | addChild (BookmarkItem *child) |
BookmarkItem * | child (int number) const |
int | childCount () const |
int | childNumber () const |
QVariant | data (int column) const |
void | setData (const DataVector &data) |
bool | setData (int column, const QVariant &value) |
bool | insertChildren (bool isFolder, int position, int count) |
bool | removeChildren (int position, int count) |
void | dumpTree (int indent) const |
Definition at line 20 of file bookmarkitem.h.
|
explicit |
Definition at line 13 of file bookmarkitem.cpp.
BookmarkItem::~BookmarkItem | ( | ) |
Definition at line 19 of file bookmarkitem.cpp.
void BookmarkItem::addChild | ( | BookmarkItem * | child | ) |
Definition at line 37 of file bookmarkitem.cpp.
References setParent().
Referenced by BookmarkModel::setBookmarks().
BookmarkItem * BookmarkItem::child | ( | int | number | ) | const |
Definition at line 44 of file bookmarkitem.cpp.
Referenced by BookmarkModel::index().
int BookmarkItem::childCount | ( | ) | const |
Definition at line 51 of file bookmarkitem.cpp.
Referenced by BookmarkModel::rowCount().
int BookmarkItem::childNumber | ( | ) | const |
Definition at line 56 of file bookmarkitem.cpp.
Referenced by BookmarkModel::parent().
QVariant BookmarkItem::data | ( | int | column | ) | const |
Definition at line 64 of file bookmarkitem.cpp.
void BookmarkItem::dumpTree | ( | int | indent | ) | const |
Definition at line 137 of file bookmarkitem.cpp.
bool BookmarkItem::insertChildren | ( | bool | isFolder, |
int | position, | ||
int | count ) |
Definition at line 108 of file bookmarkitem.cpp.
Referenced by BookmarkModel::insertRows().
BookmarkItem * BookmarkItem::parent | ( | ) | const |
Definition at line 25 of file bookmarkitem.cpp.
Referenced by BookmarkModel::parent().
bool BookmarkItem::removeChildren | ( | int | position, |
int | count ) |
Definition at line 125 of file bookmarkitem.cpp.
Referenced by BookmarkModel::removeRows().
void BookmarkItem::setData | ( | const DataVector & | data | ) |
Definition at line 82 of file bookmarkitem.cpp.
Referenced by BookmarkModel::setData(), and BookmarkModel::setData().
bool BookmarkItem::setData | ( | int | column, |
const QVariant & | value ) |
Definition at line 88 of file bookmarkitem.cpp.
void BookmarkItem::setParent | ( | BookmarkItem * | parent | ) |
Definition at line 31 of file bookmarkitem.cpp.
Referenced by addChild().