//initialize();
reset();
+ emit modelUpdated();
}
/*!
synchronize<ObjPtr,ItemPtr,SUIT_TreeModel::TreeSync>( obj,
treeItem( obj ),
SUIT_TreeModel::TreeSync( this ) );
+ emit modelUpdated();
}
/*!
: QSortFilterProxyModel( parent ),
mySortingEnabled( true )
{
- setSourceModel( new SUIT_TreeModel( this ) );
+ SUIT_TreeModel* model = new SUIT_TreeModel( this );
+ connect( model, SIGNAL( modelUpdated() ), this, SIGNAL( modelUpdated() ) );
+ setSourceModel( model );
}
/*!
: QSortFilterProxyModel( parent ),
mySortingEnabled( true )
{
- setSourceModel( new SUIT_TreeModel( root, this ) );
+ SUIT_TreeModel* model = new SUIT_TreeModel( root, this );
+ connect( model, SIGNAL( modelUpdated() ), this, SIGNAL( modelUpdated() ) );
+ setSourceModel( model );
}
/*!
: QSortFilterProxyModel( parent ),
mySortingEnabled( true )
{
+ connect( model, SIGNAL( modelUpdated() ), this, SIGNAL( modelUpdated() ) );
setSourceModel( model );
}
virtual void updateTree( const QModelIndex& );
virtual void updateTree( SUIT_DataObject* = 0 );
+signals:
+ void modelUpdated();
+
private:
void initialize();
virtual void updateTree( SUIT_DataObject* = 0 );
void setSortingEnabled( bool );
+signals:
+ void modelUpdated();
+
protected:
virtual bool lessThan( const QModelIndex&, const QModelIndex& ) const;