Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SimpleTreeItem Class Reference

#include </tmp/quassel/src/client/treemodel.h>

Inheritance diagram for SimpleTreeItem:
Collaboration diagram for SimpleTreeItem:

Public Types

enum  TreeItemFlag { NoTreeItemFlag = 0x00, DeleteOnLastChildRemoved = 0x01 }

Signals

void dataChanged (int column=-1)
void beginAppendChilds (int firstRow, int lastRow)
void endAppendChilds ()
void beginRemoveChilds (int firstRow, int lastRow)
void endRemoveChilds ()

Public Member Functions

 SimpleTreeItem (const QList< QVariant > &data, AbstractTreeItem *parent=0)
virtual ~SimpleTreeItem ()
virtual QVariant data (int column, int role) const
virtual bool setData (int column, const QVariant &value, int role)
virtual int columnCount () const
 Q_DECLARE_FLAGS (TreeItemFlags, TreeItemFlag) AbstractTreeItem(AbstractTreeItem *parent=0)
bool newChild (AbstractTreeItem *child)
bool newChilds (const QList< AbstractTreeItem * > &items)
bool removeChild (int row)
bool removeChild (AbstractTreeItem *child)
void removeAllChilds ()
bool reParent (AbstractTreeItem *newParent)
AbstractTreeItemchild (int row) const
int childCount (int column=0) const
virtual Qt::ItemFlags flags () const
virtual void setFlags (Qt::ItemFlags flags)
AbstractTreeItem::TreeItemFlags treeItemFlags () const
void setTreeItemFlags (AbstractTreeItem::TreeItemFlags flags)
int row () const
AbstractTreeItemparent () const
void dumpChildList ()

Protected Member Functions

void customEvent (QEvent *event)

Private Attributes

QList< QVariant > _itemData

Detailed Description

Definition at line 103 of file treemodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

SimpleTreeItem ( const QList< QVariant > &  data,
AbstractTreeItem parent = 0 
)

Definition at line 233 of file treemodel.cpp.

~SimpleTreeItem ( )
virtual

Definition at line 240 of file treemodel.cpp.

Member Function Documentation

QVariant data ( int  column,
int  role 
) const
virtual

Implements AbstractTreeItem.

Definition at line 245 of file treemodel.cpp.

References _itemData, and columnCount().

bool setData ( int  column,
const QVariant &  value,
int  role 
)
virtual

Implements AbstractTreeItem.

Definition at line 254 of file treemodel.cpp.

References _itemData, columnCount(), and AbstractTreeItem::dataChanged().

int columnCount ( ) const
virtual

Implements AbstractTreeItem.

Definition at line 269 of file treemodel.cpp.

References _itemData.

Referenced by data(), and setData().

Q_DECLARE_FLAGS ( TreeItemFlags  ,
TreeItemFlag   
)
pure virtualinherited
bool removeChild ( AbstractTreeItem child)
inlineinherited

Definition at line 51 of file treemodel.h.

References AbstractTreeItem::removeChild().

Referenced by AbstractTreeItem::removeChild().

virtual Qt::ItemFlags flags ( ) const
inlinevirtualinherited
virtual void setFlags ( Qt::ItemFlags  flags)
inlinevirtualinherited
AbstractTreeItem::TreeItemFlags treeItemFlags ( ) const
inlineinherited

Definition at line 68 of file treemodel.h.

References AbstractTreeItem::_treeItemFlags.

Referenced by AbstractTreeItem::checkForDeletion().

void setTreeItemFlags ( AbstractTreeItem::TreeItemFlags  flags)
inlineinherited
void beginAppendChilds ( int  firstRow,
int  lastRow 
)
signalinherited
void endAppendChilds ( )
signalinherited
void beginRemoveChilds ( int  firstRow,
int  lastRow 
)
signalinherited
void endRemoveChilds ( )
signalinherited
void customEvent ( QEvent *  event)
protectedinherited

Member Data Documentation

QList<QVariant> _itemData
private

Definition at line 117 of file treemodel.h.

Referenced by columnCount(), data(), and setData().


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