Update property when needed.

svn path=/trunk/KDE/kdebase/apps/; revision=687397
This commit is contained in:
Rafael Fernández López 2007-07-13 14:06:11 +00:00
parent f93cc2499d
commit aa69bcdc64

View file

@ -542,6 +542,7 @@ void KCategorizedView::reset()
d->intersectedIndexes.clear();
d->sourceModelIndexList.clear();
d->hovered = QModelIndex();
d->biggestItemSize = QSize(0, 0);
d->mouseButtonPressed = false;
}
@ -1067,6 +1068,7 @@ void KCategorizedView::rowsInserted(const QModelIndex &parent,
d->intersectedIndexes.clear();
d->sourceModelIndexList.clear();
d->hovered = QModelIndex();
d->biggestItemSize = QSize(0, 0);
d->mouseButtonPressed = false;
return;
@ -1094,6 +1096,7 @@ void KCategorizedView::rowsInsertedArtifficial(const QModelIndex &parent,
d->intersectedIndexes.clear();
d->sourceModelIndexList.clear();
d->hovered = QModelIndex();
d->biggestItemSize = QSize(0, 0);
d->mouseButtonPressed = false;
if (start > end || end < 0 || start < 0 || !d->proxyModel->rowCount())