Classes | Public Member Functions | Protected Attributes | List of all members
pqTreeWidgetItem Class Reference

pqTreeWidgetItem is a QTreeWidgetItem with callbacks for whenever the data for the pqTreeWidgetItem changes. More...

#include <pqTreeWidgetItem.h>

Inherits QTreeWidgetItem.

Collaboration diagram for pqTreeWidgetItem:
Collaboration graph
[legend]

Classes

class  pqCallbackHandler
 

Public Member Functions

 pqTreeWidgetItem (int atype=UserType)
 
 pqTreeWidgetItem (const QStringList &strings, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidget *aparent, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidget *aparent, const QStringList &strings, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidget *aparent, QTreeWidgetItem *preceding, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidgetItem *aparent, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidgetItem *aparent, const QStringList &strings, int atype=UserType)
 
 pqTreeWidgetItem (QTreeWidgetItem *aparent, QTreeWidgetItem *preceding, int atype=UserType)
 
void setData (int column, int role, const QVariant &v) override
 overload setData() to call callbacks if set. More...
 
void setCallbackHandler (pqCallbackHandler *hdlr)
 Set the name of the callback slot to call. More...
 

Protected Attributes

pqCallbackHandlerCallbackHandler
 

Detailed Description

pqTreeWidgetItem is a QTreeWidgetItem with callbacks for whenever the data for the pqTreeWidgetItem changes.

This is designed as a replacement for pqTreeWidgetItemObject avoid the need for pqTreeWidgetItem to be a QObject subclass, thus keeping them light-weight.

Definition at line 16 of file pqTreeWidgetItem.h.

Constructor & Destructor Documentation

◆ pqTreeWidgetItem() [1/8]

pqTreeWidgetItem::pqTreeWidgetItem ( int  atype = UserType)
inline

Definition at line 21 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [2/8]

pqTreeWidgetItem::pqTreeWidgetItem ( const QStringList &  strings,
int  atype = UserType 
)
inline

Definition at line 26 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [3/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidget *  aparent,
int  atype = UserType 
)
inline

Definition at line 31 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [4/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidget *  aparent,
const QStringList &  strings,
int  atype = UserType 
)
inline

Definition at line 36 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [5/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidget *  aparent,
QTreeWidgetItem *  preceding,
int  atype = UserType 
)
inline

Definition at line 41 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [6/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidgetItem *  aparent,
int  atype = UserType 
)
inline

Definition at line 46 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [7/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidgetItem *  aparent,
const QStringList &  strings,
int  atype = UserType 
)
inline

Definition at line 51 of file pqTreeWidgetItem.h.

◆ pqTreeWidgetItem() [8/8]

pqTreeWidgetItem::pqTreeWidgetItem ( QTreeWidgetItem *  aparent,
QTreeWidgetItem *  preceding,
int  atype = UserType 
)
inline

Definition at line 56 of file pqTreeWidgetItem.h.

Member Function Documentation

◆ setData()

void pqTreeWidgetItem::setData ( int  column,
int  role,
const QVariant &  v 
)
override

overload setData() to call callbacks if set.

◆ setCallbackHandler()

void pqTreeWidgetItem::setCallbackHandler ( pqCallbackHandler hdlr)
inline

Set the name of the callback slot to call.

Definition at line 105 of file pqTreeWidgetItem.h.

Member Data Documentation

◆ CallbackHandler

pqCallbackHandler* pqTreeWidgetItem::CallbackHandler
protected

Definition at line 108 of file pqTreeWidgetItem.h.


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