return child;
}
+/*!
+ Returns the level of the object in the data tree.
+ 0 means that object is top-level.
+*/
+
+int SUIT_DataObject::level() const
+{
+ int lev = 0;
+ SUIT_DataObject* p = parent();
+ while ( p ) {
+ p = p->parent();
+ lev++;
+ }
+ return lev;
+}
+
/*!
Returns the next data object in the child list of the parent.
*/
int childCount() const;
int childPos( const SUIT_DataObject* ) const;
SUIT_DataObject* childObject( const int ) const;
+ int level() const;
SUIT_DataObject* nextBrother() const;
SUIT_DataObject* prevBrother() const;