Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QTreeWidgetItemIterator Class Reference

The QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance. More...

Inheritance diagram for QtGui.QTreeWidgetItemIterator:
Collaboration diagram for QtGui.QTreeWidgetItemIterator:

Public Types

enum  IteratorFlag {
  All = 0, Checked = 4096, Disabled = 32768, DragDisabled = 128,
  DragEnabled = 64, DropDisabled = 512, DropEnabled = 256, Editable = 65536,
  Enabled = 16384, HasChildren = 1024, Hidden = 1, NoChildren = 2048,
  NotChecked = 8192, NotEditable = 131072, NotHidden = 2, NotSelectable = 32,
  Selectable = 16, Selected = 4, Unselected = 8, UserFlag = 16777216
}
  More...
 

Public Member Functions

 QTreeWidgetItemIterator (QTreeWidgetItemIterator it)
 
 
 QTreeWidgetItemIterator (QTreeWidget widget, QTreeWidgetItemIterator.IteratorFlag flags=QTreeWidgetItemIterator.IteratorFlag.All)
 
 
 QTreeWidgetItemIterator (QTreeWidgetItem item, QTreeWidgetItemIterator.IteratorFlag flags=QTreeWidgetItemIterator.IteratorFlag.All)
 
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Static Public Member Functions

static QTreeWidgetItemIterator operator++ (QTreeWidgetItemIterator arg1)
 
 
static QTreeWidgetItemIterator operator-- (QTreeWidgetItemIterator arg1)
 
 

Protected Member Functions

 QTreeWidgetItemIterator (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance.

The iterator will walk the items in a pre-order traversal order, thus visiting the parent node before it continues to the child nodes.

For example, the following code examples each item in a tree, checking the text in the first column against a user-specified search string:

QTreeWidgetItemIterator it(treeWidget);

while (*it) {

if ((*it)->text(0) == itemText)

(*it)->setSelected(true);

++it;

}

It is also possible to filter out certain types of node by passing certain flags to the constructor of QTreeWidgetItemIterator.

See also QTreeWidget, Model/View Programming, and QTreeWidgetItem.

Member Enumeration Documentation

These flags can be passed to a QTreeWidgetItemIterator constructor (OR-ed together if more than one is used), so that the iterator will only iterate over items that match the given flags.

Enumerator:
All 
Checked 
Disabled 
DragDisabled 
DragEnabled 
DropDisabled 
DropEnabled 
Editable 
Enabled 
HasChildren 
Hidden 
NoChildren 
NotChecked 
NotEditable 
NotHidden 
NotSelectable 
Selectable 
Selected 
Unselected 
UserFlag 

Constructor & Destructor Documentation

QtGui.QTreeWidgetItemIterator.QTreeWidgetItemIterator ( System.Type  dummy)
protected
QtGui.QTreeWidgetItemIterator.QTreeWidgetItemIterator ( QTreeWidgetItemIterator  it)

Constructs an iterator for the same QTreeWidget as it. The current iterator item is set to point on the current item of it.

QtGui.QTreeWidgetItemIterator.QTreeWidgetItemIterator ( QTreeWidget  widget,
QTreeWidgetItemIterator.IteratorFlag  flags = QTreeWidgetItemIterator.IteratorFlag.All 
)

Constructs an iterator for the same QTreeWidget as it. The current iterator item is set to point on the current item of it.

QtGui.QTreeWidgetItemIterator.QTreeWidgetItemIterator ( QTreeWidgetItem  item,
QTreeWidgetItemIterator.IteratorFlag  flags = QTreeWidgetItemIterator.IteratorFlag.All 
)

Constructs an iterator for the same QTreeWidget as it. The current iterator item is set to point on the current item of it.

Member Function Documentation

virtual void QtGui.QTreeWidgetItemIterator.CreateProxy ( )
virtual
new void QtGui.QTreeWidgetItemIterator.Dispose ( )
static QTreeWidgetItemIterator QtGui.QTreeWidgetItemIterator.operator++ ( QTreeWidgetItemIterator  arg1)
static

The prefix ++ operator (++it) advances the iterator to the next matching item and returns a reference to the resulting iterator. Sets the current pointer to 0 if the current item is the last matching item.

static QTreeWidgetItemIterator QtGui.QTreeWidgetItemIterator.operator-- ( QTreeWidgetItemIterator  arg1)
static

The prefix – operator (–it) advances the iterator to the previous matching item and returns a reference to the resulting iterator. Sets the current pointer to 0 if the current item is the first matching item.

Member Data Documentation

SmokeInvocation QtGui.QTreeWidgetItemIterator.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QTreeWidgetItemIterator.SmokeObject
getset