The ObserverTreeItem class represents a single observer item in a tree view. More...
#include <ObserverTreeItem.h>
Public Types | |
enum | TreeItemType { InvalidType = 0, TreeItem = 1, TreeNode = 2, CategoryItem = 4 } |
The possible types of items which can be part of the constructed observer tree. More... |
Public Member Functions | |
QtilitiesCategory | category () const |
Gets the category represented through this item. Only used with CategoryItem types. | |
ObserverTreeItem * | childWithName (const QString &name) const |
Checks if a child with the name already exists. | |
Observer * | containedObserver () const |
Gets the contained observer reference. The reference is held by the category item. | |
void | setCategory (const QtilitiesCategory &category) |
Sets the category represented through this item. Only used with CategoryItem types. | |
void | setContainedObserver (Observer *contained_observer) |
Sets a references to an observer in the case where the observer is contained within an interface. |
The ObserverTreeItem class represents a single observer item in a tree view.
This class should not be confused with TreeItem or TreeFileItem which are actual objects that are used to build tree structures along with TreeNode. The ObserverTreeItem class is used internally by ObserverTreeModel to construct a model used to display an Qtilities::Core::Observer tree structure and should not be used directly.
Qtilities::CoreGui::ObserverTreeItem * Qtilities::CoreGui::ObserverTreeItem::childWithName | ( | const QString & | name | ) | const |
Checks if a child with the name already exists.
If the child already exists a reference is returned to it. If not 0 is returned.
Qtilities : Reference Documentation | Back to top |
Copyright © 2009-2013, Jaco Naudé
|