for ( DataObjectListIterator it ( lst ); it.current(); ++it )
createTree( it.current(), item );
+ if ( item )
+ item->setOpen( obj->isOpen() );
+
return item;
}
item->setOpen( true );
while ( item )
{
- openBranch( item, level - 1 );
+ openBranch( item->firstChild(), level - 1 );
item = item->nextSibling();
}
}
SUIT_DataObject::SUIT_DataObject( SUIT_DataObject* p )
: myParent( 0 ),
mySignal( 0 ),
+ myOpen( false ),
myCheck( false )
{
myChildren.setAutoDelete( true );
myCheck = on;
}
+bool SUIT_DataObject::isOpen() const
+{
+ return myOpen;
+}
+
+void SUIT_DataObject::setOpen( const bool on )
+{
+ myOpen = on;
+}
+
/*!
Returns object personal indentification key.
*/
virtual bool isOn() const;
virtual void setOn( const bool );
+ virtual bool isOpen() const;
+ virtual void setOpen( const bool );
+
virtual SUIT_DataObjectKey* key() const;
bool connect( QObject*, const char* );
void dump( const int indent = 2 ) const; // dump to cout
private:
+ bool myOpen;
bool myCheck;
Signal* mySignal;
SUIT_DataObject* myParent;