-void NickView::rowsInserted(const QModelIndex &parent, int start, int end) {
- QTreeView::rowsInserted(parent, start, end);
- if(model()->data(parent, NetworkModel::ItemTypeRole) == NetworkModel::UserCategoryItemType && !isExpanded(parent))
- expand(parent);
- updateSizeHint();
-}
-
-void NickView::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) {
- QTreeView::rowsAboutToBeRemoved(parent, start, end);
- updateSizeHint();
-}
-
-void NickView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) {
- QTreeView::dataChanged(topLeft, bottomRight);
- updateSizeHint();
-}