*/
void SUIT_DataBrowser::init( SUIT_DataObject* root )
{
- setModel( new SUIT_ProxyModel( root, this ) );
+ SUIT_ProxyModel* m = new SUIT_ProxyModel( root, this );
+ connect( m, SIGNAL( modelUpdated() ), this, SLOT( onModelUpdated() ) );
+
+ setModel( m );
setItemDelegate( qobject_cast<SUIT_ProxyModel*>( model() )->delegate() );
connect( treeView(), SIGNAL( sortingEnabled(bool ) ),
model(), SLOT( setSortingEnabled( bool ) ) );
\sa updateKey(), setUpdateKey()
*/
+
+
+
+/*!
+ \brief Update internal modification time just after data model update
+*/
+void SUIT_DataBrowser::onModelUpdated()
+{
+ setModified();
+}