Public Member Functions

conan::RootItem Class Reference

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.

List of all members.

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.

Detailed Description

Represents the root item for use in a ObjectModel. Note that the root does not wrap an object.


Constructor & Destructor Documentation

conan::RootItem::RootItem (  ) 

Constructs an empty root item.


Member Function Documentation

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.


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