emit dataChanged( firstIdx, lastIdx );
}
+void SUIT_TreeModel::updateItem( SUIT_DataObject* obj)
+{
+ if(obj)
+ {
+ QModelIndex firstIdx = index( obj, 0 );
+ QModelIndex lastIdx = index( obj, columnCount() - 1 );
+ emit dataChanged( firstIdx, lastIdx );
+ }
+}
+
/*!
\brief Remove tree item (recursively).
\param item tree item to be removed
int row, int column, const QModelIndex& parent );
bool getObjects( const QMimeData* data, QList<SUIT_DataObject*>& ) const;
void setDropAccepted( const bool );
-
+
+ void updateItem( SUIT_DataObject* object);
+
public slots:
virtual void updateTree( const QModelIndex& );
virtual void updateTree( SUIT_DataObject* = 0 );