digiKam
Digikam::ListItem Class Reference
+ Inheritance diagram for Digikam::ListItem:

Public Member Functions

QList< ListItem * > allChildren () const
 
void appendChild (ListItem *const child)
 
void appendList (const QList< ListItem * > &items)
 
ListItemchild (int row) const
 
int childCount () const
 
int columnCount () const
 
ListItemcontainsItem (ListItem *const item) const
 containsItem - search child items if contains a ListItem with the same data as item More...
 
QVariant data (int column) const
 
void deleteChild (int row)
 
void deleteChild (ListItem *const item)
 
bool equal (ListItem *const item) const
 
QList< int > getTagIds () const
 
 ListItem (QList< QVariant > &data, ListItem *const parent=nullptr)
 
ListItemparent () const
 
void removeAll ()
 
void removeTagId (int tagId)
 
int row () const
 
void setData (const QList< QVariant > &data)
 
 ~ListItem () override
 

Constructor & Destructor Documentation

◆ ListItem()

Digikam::ListItem::ListItem ( QList< QVariant > &  data,
ListItem *const  parent = nullptr 
)
explicit

References data(), and parent().

◆ ~ListItem()

Digikam::ListItem::~ListItem ( )
override

Member Function Documentation

◆ allChildren()

QList< ListItem * > Digikam::ListItem::allChildren ( ) const

◆ appendChild()

void Digikam::ListItem::appendChild ( ListItem *const  child)

◆ appendList()

void Digikam::ListItem::appendList ( const QList< ListItem * > &  items)

◆ child()

ListItem * Digikam::ListItem::child ( int  row) const

References row().

Referenced by Digikam::TagMngrListModel::index().

◆ childCount()

int Digikam::ListItem::childCount ( ) const

◆ columnCount()

int Digikam::ListItem::columnCount ( ) const

◆ containsItem()

ListItem * Digikam::ListItem::containsItem ( ListItem *const  item) const

containsItem - search child items if contains a ListItem with the same data as item

Parameters
item- ListItem pointer for which we should search if there is a similar item
Returns
- NULL if no similar item was found and a valid ListItem if a ListItem with the same data was found

References equal().

◆ data()

QVariant Digikam::ListItem::data ( int  column) const

◆ deleteChild() [1/2]

void Digikam::ListItem::deleteChild ( int  row)

References row().

Referenced by deleteChild().

◆ deleteChild() [2/2]

void Digikam::ListItem::deleteChild ( ListItem *const  item)

References deleteChild(), and row().

◆ equal()

bool Digikam::ListItem::equal ( ListItem *const  item) const

References getTagIds().

Referenced by containsItem().

◆ getTagIds()

QList< int > Digikam::ListItem::getTagIds ( ) const

◆ parent()

ListItem * Digikam::ListItem::parent ( ) const

◆ removeAll()

void Digikam::ListItem::removeAll ( )

◆ removeTagId()

void Digikam::ListItem::removeTagId ( int  tagId)

◆ row()

int Digikam::ListItem::row ( ) const

◆ setData()

void Digikam::ListItem::setData ( const QList< QVariant > &  data)

References data().


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