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
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent b56ad8c3ae
commit b12610e46a
  1. 6
      ui/annotationmodel.cpp

@ -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

Loading…
Cancel
Save