when an annotation was updated, update all the annotation for its page (we can't do else, at the moment...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=710252
This commit is contained in:
Pino Toscano 2007-09-09 12:33:49 +00:00
parent b56ad8c3ae
commit b12610e46a

View file

@ -201,6 +201,12 @@ void AnnotationModelPrivate::notifyPageChanged( int page, int flags )
}
// case 5: the data of some annotation changed
// TODO: what do we do in this case?
// FIXME: for now, update ALL the annotations for that page
for ( int i = 0; i < annItem->children.count(); ++i )
{
QModelIndex index = indexForItem( annItem->children.at( i ) );
emit q->dataChanged( index, index );
}
}
QModelIndex AnnotationModelPrivate::indexForItem( AnnItem *item ) const