Represents the root item for use in a ObjectModel. Note that the root does not wrap an object. More...
#include <ObjectModel.h>
Inherits conan::ObjectItem.
Public Member Functions | |
RootItem () | |
Constructs an empty root item. | |
void | AddChild (const QObject *inObject) |
Creates and adds an item hierarchy that wraps the object hierarchy defined by the given object. | |
void | RemoveChild (const QObject *inObject) |
Deletes and removes the item hierarchy that wraps the object hierarchy defined by the given object. | |
void | RemoveAllChildren () |
Destroyes all child items. |
Represents the root item for use in a ObjectModel. Note that the root does not wrap an object.
conan::RootItem::RootItem | ( | ) |
Constructs an empty root item.
void conan::RootItem::AddChild | ( | const QObject * | inObject | ) |
Creates and adds an item hierarchy that wraps the object hierarchy defined by the given object.
When the object is already part of an existing hierarchy nothing is done. In case the object shares a mutual parent with an existing hierarchy, that hierarchy is replaced with the hierarchy starting at that mutual parent.
void conan::RootItem::RemoveAllChildren | ( | ) |
Destroyes all child items.
void conan::RootItem::RemoveChild | ( | const QObject * | inObject | ) |
Deletes and removes the item hierarchy that wraps the object hierarchy defined by the given object.