BibleTime
|
Public Member Functions | |
void | addChild (BookmarkItemBase *child) |
BookmarkFolder (const QString &name, BookmarkFolder *parent=nullptr) | |
QList< BookmarkItemBase * > const & | children () const noexcept |
QList< BookmarkItemBase * > & | children () noexcept |
BookmarkFolder * | deepCopy () const |
Qt::ItemFlags | flags () const noexcept final override |
bool | hasDescendant (BookmarkItemBase const *item) const |
QIcon const & | icon () const noexcept final override |
void | insertChild (int index, BookmarkItemBase *child) |
void | insertChildren (int index, QList< BookmarkItemBase * > children) |
void | removeChild (int index) |
~BookmarkFolder () final override | |
Public Member Functions inherited from anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase | |
BookmarkItemBase (BookmarkFolder *parent=nullptr) | |
BookmarkItemBase (const BookmarkItemBase &other) | |
int | index () const |
BookmarkFolder * | parent () const |
void | setParent (BookmarkFolder *parent) |
void | setText (QString const &text) |
QString const & | text () const |
virtual QString | toolTip () const |
virtual | ~BookmarkItemBase () |
Private Attributes | |
QList< BookmarkItemBase * > | m_children |
Definition at line 156 of file btbookmarksmodel.cpp.
BookmarkFolder::BookmarkFolder | ( | const QString & | name, |
BookmarkFolder * | parent = nullptr |
||
) |
Definition at line 433 of file btbookmarksmodel.cpp.
|
inlinefinaloverride |
Definition at line 161 of file btbookmarksmodel.cpp.
|
inline |
Children routines.
Definition at line 173 of file btbookmarksmodel.cpp.
References BT_ASSERT, and anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase::setParent().
Referenced by anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase::BookmarkItemBase(), and deepCopy().
|
inlinenoexcept |
Definition at line 180 of file btbookmarksmodel.cpp.
|
inlinenoexcept |
Definition at line 179 of file btbookmarksmodel.cpp.
Referenced by anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase::index().
BookmarkFolder * BookmarkFolder::deepCopy | ( | ) | const |
Creates a deep copy of this item.
Definition at line 451 of file btbookmarksmodel.cpp.
References addChild().
|
inlinefinaloverridevirtualnoexcept |
Reimplemented from anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase.
Definition at line 163 of file btbookmarksmodel.cpp.
bool BookmarkFolder::hasDescendant | ( | BookmarkItemBase const * | item | ) | const |
Returns true if the given item is this or a direct or indirect subitem of this.
Definition at line 438 of file btbookmarksmodel.cpp.
|
inlinefinaloverridevirtualnoexcept |
Reimplemented from anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase.
Definition at line 169 of file btbookmarksmodel.cpp.
|
inline |
Definition at line 183 of file btbookmarksmodel.cpp.
References BT_ASSERT, and anonymous_namespace{btbookmarksmodel.cpp}::BookmarkItemBase::setParent().
|
inline |
Definition at line 189 of file btbookmarksmodel.cpp.
|
inline |
Definition at line 194 of file btbookmarksmodel.cpp.
|
private |
Definition at line 207 of file btbookmarksmodel.cpp.