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

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

Inheritance diagram for PropertyMapItem:
Collaboration diagram for PropertyMapItem:

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

 PropertyMapItem (const QStringList &propertyOrder, AbstractTreeItem *parent=0)
 PropertyMapItem (AbstractTreeItem *parent=0)
virtual ~PropertyMapItem ()
virtual QVariant data (int column, int role) const
virtual bool setData (int column, const QVariant &value, int role)
virtual QString toolTip (int column) const
virtual int columnCount () const
void appendProperty (const QString &property)
 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

QStringList _propertyOrder

Detailed Description

Definition at line 124 of file treemodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

PropertyMapItem ( const QStringList &  propertyOrder,
AbstractTreeItem parent = 0 
)

Definition at line 278 of file treemodel.cpp.

PropertyMapItem ( AbstractTreeItem parent = 0)

Definition at line 285 of file treemodel.cpp.

~PropertyMapItem ( )
virtual

Definition at line 292 of file treemodel.cpp.

Member Function Documentation

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

Implements AbstractTreeItem.

Reimplemented in QueryBufferItem, and BufferItem.

Definition at line 314 of file treemodel.cpp.

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

virtual QString toolTip ( int  column) const
inlinevirtual

Reimplemented in IrcUserItem, ChannelBufferItem, QueryBufferItem, StatusBufferItem, BufferItem, and NetworkItem.

Definition at line 137 of file treemodel.h.

Referenced by data().

int columnCount ( ) const
virtual

Implements AbstractTreeItem.

Definition at line 324 of file treemodel.cpp.

References _propertyOrder.

Referenced by data(), and setData().

void appendProperty ( const QString &  property)

Definition at line 330 of file treemodel.cpp.

References _propertyOrder.

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

QStringList _propertyOrder
private

Definition at line 143 of file treemodel.h.

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


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