mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
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:
parent
b56ad8c3ae
commit
b12610e46a
|
@ -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…
Reference in a new issue