Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BookmarkItem Class Reference

#include <bookmarkitem.h>

+ Collaboration diagram for BookmarkItem:

Public Member Functions

 BookmarkItem (const DataVector &data, BookmarkItem *parent=nullptr)
 
 ~BookmarkItem ()
 
BookmarkItemparent () const
 
void setParent (BookmarkItem *parent)
 
void addChild (BookmarkItem *child)
 
BookmarkItemchild (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
 

Detailed Description

Definition at line 20 of file bookmarkitem.h.

Constructor & Destructor Documentation

◆ BookmarkItem()

BookmarkItem::BookmarkItem ( const DataVector & data,
BookmarkItem * parent = nullptr )
explicit

Definition at line 13 of file bookmarkitem.cpp.

◆ ~BookmarkItem()

BookmarkItem::~BookmarkItem ( )

Definition at line 19 of file bookmarkitem.cpp.

Member Function Documentation

◆ addChild()

void BookmarkItem::addChild ( BookmarkItem * child)

Definition at line 37 of file bookmarkitem.cpp.

References setParent().

Referenced by BookmarkModel::setBookmarks().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ child()

BookmarkItem * BookmarkItem::child ( int number) const

Definition at line 44 of file bookmarkitem.cpp.

Referenced by BookmarkModel::index().

+ Here is the caller graph for this function:

◆ childCount()

int BookmarkItem::childCount ( ) const

Definition at line 51 of file bookmarkitem.cpp.

Referenced by BookmarkModel::rowCount().

+ Here is the caller graph for this function:

◆ childNumber()

int BookmarkItem::childNumber ( ) const

Definition at line 56 of file bookmarkitem.cpp.

Referenced by BookmarkModel::parent().

+ Here is the caller graph for this function:

◆ data()

QVariant BookmarkItem::data ( int column) const

Definition at line 64 of file bookmarkitem.cpp.

◆ dumpTree()

void BookmarkItem::dumpTree ( int indent) const

Definition at line 137 of file bookmarkitem.cpp.

◆ insertChildren()

bool BookmarkItem::insertChildren ( bool isFolder,
int position,
int count )

Definition at line 108 of file bookmarkitem.cpp.

Referenced by BookmarkModel::insertRows().

+ Here is the caller graph for this function:

◆ parent()

BookmarkItem * BookmarkItem::parent ( ) const

Definition at line 25 of file bookmarkitem.cpp.

Referenced by BookmarkModel::parent().

+ Here is the caller graph for this function:

◆ removeChildren()

bool BookmarkItem::removeChildren ( int position,
int count )

Definition at line 125 of file bookmarkitem.cpp.

Referenced by BookmarkModel::removeRows().

+ Here is the caller graph for this function:

◆ setData() [1/2]

void BookmarkItem::setData ( const DataVector & data)

Definition at line 82 of file bookmarkitem.cpp.

Referenced by BookmarkModel::setData(), and BookmarkModel::setData().

+ Here is the caller graph for this function:

◆ setData() [2/2]

bool BookmarkItem::setData ( int column,
const QVariant & value )

Definition at line 88 of file bookmarkitem.cpp.

References UserRoleExpanded, UserRoleFolder, and UserRoleUrl.

◆ setParent()

void BookmarkItem::setParent ( BookmarkItem * parent)

Definition at line 31 of file bookmarkitem.cpp.

Referenced by addChild().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: