Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QOptionTreeItem Class Reference

Public Types

enum  ItemType { Root, Group, Option, Choice }
 

Public Functions

 QOptionTreeItem (ItemType t, int i, const void *p, const char *desc, QOptionTreeItem *pi)
 
 ~QOptionTreeItem ()
 

Public Variables

QList< QOptionTreeItem * > childItems
 
const char * description
 
int index
 
QOptionTreeItemparentItem
 
const void * ptr
 
const char * selDescription
 
int selected
 
ItemType type
 

Detailed Description

Definition at line 185 of file qprintdialog_unix.cpp.

Enumerations

◆ ItemType

Constructors and Destructors

◆ QOptionTreeItem()

QOptionTreeItem::QOptionTreeItem ( ItemType  t,
int  i,
const void *  p,
const char *  desc,
QOptionTreeItem pi 
)
inline

Definition at line 190 of file qprintdialog_unix.cpp.

191  : type(t),
192  index(i),
193  ptr(p),
194  description(desc),
195  selected(-1),
196  selDescription(0),
197  parentItem(pi) {}
const char * description
QOptionTreeItem * parentItem
const char * selDescription

◆ ~QOptionTreeItem()

QOptionTreeItem::~QOptionTreeItem ( )
inline

Definition at line 199 of file qprintdialog_unix.cpp.

199  {
200  while (!childItems.isEmpty())
201  delete childItems.takeFirst();
202  }
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QList< QOptionTreeItem * > childItems
T takeFirst()
Removes the first item in the list and returns it.
Definition: qlist.h:489

Properties

◆ childItems

QList<QOptionTreeItem*> QOptionTreeItem::childItems

◆ description

const char* QOptionTreeItem::description

◆ index

int QOptionTreeItem::index

Definition at line 205 of file qprintdialog_unix.cpp.

Referenced by QPPDOptionsModel::parent().

◆ parentItem

QOptionTreeItem* QOptionTreeItem::parentItem

Definition at line 210 of file qprintdialog_unix.cpp.

Referenced by QPPDOptionsModel::parent().

◆ ptr

const void* QOptionTreeItem::ptr

◆ selDescription

const char* QOptionTreeItem::selDescription

◆ selected

int QOptionTreeItem::selected

◆ type

ItemType QOptionTreeItem::type

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