Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance. More...
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) | |
More... | |
QTreeWidgetItemIterator (QTreeWidget widget, QTreeWidgetItemIterator.IteratorFlag flags=QTreeWidgetItemIterator.IteratorFlag.All) | |
More... | |
QTreeWidgetItemIterator (QTreeWidgetItem item, QTreeWidgetItemIterator.IteratorFlag flags=QTreeWidgetItemIterator.IteratorFlag.All) | |
More... | |
virtual void | CreateProxy () |
new void | Dispose () |
Static Public Member Functions | |
static QTreeWidgetItemIterator | operator++ (QTreeWidgetItemIterator one) |
More... | |
static QTreeWidgetItemIterator | operator-- (QTreeWidgetItemIterator one) |
More... | |
Protected Member Functions | |
QTreeWidgetItemIterator (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
virtual System.IntPtr | SmokeObject [get, set] |
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.
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.
|
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 given widget that uses the specified flags to determine which items are found during iteration. The iterator is set to point to the first top-level item contained in the widget, or the next matching item if the top-level item doesn't match the flags.
See also QTreeWidgetItemIterator::IteratorFlag.
QtGui.QTreeWidgetItemIterator.QTreeWidgetItemIterator | ( | QTreeWidgetItem | item, |
QTreeWidgetItemIterator.IteratorFlag | flags = QTreeWidgetItemIterator.IteratorFlag.All |
||
) |
Constructs an iterator for the given item that uses the specified flags to determine which items are found during iteration. The iterator is set to point to item, or the next matching item if item doesn't match the flags.
See also QTreeWidgetItemIterator::IteratorFlag.
|
virtual |
new void QtGui.QTreeWidgetItemIterator.Dispose | ( | ) |
|
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 |
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.
|
protected |
|
getset |