add a ExternallyDrawn flag to mark annotations which are drawn elsewhere (eg by the generator)

mostly useful with External annotations, it is not applied yet

svn path=/trunk/KDE/kdegraphics/okular/; revision=1068014
This commit is contained in:
Pino Toscano 2009-12-31 09:56:31 +00:00
parent 846a3e3c83
commit f31db87a63
2 changed files with 3 additions and 2 deletions

View file

@ -127,7 +127,8 @@ class OKULAR_EXPORT Annotation
DenyWrite = 16, ///< Cannot be changed
DenyDelete = 32, ///< Cannot be deleted
ToggleHidingOnMouse = 64, ///< Can be hidden/shown by mouse click
External = 128 ///< Is stored external
External = 128, ///< Is stored external
ExternallyDrawn = 256 ///< Is drawn externally (eg the generator which povided it) @since 0.10 (KDE 4.4)
};
/**

View file

@ -169,7 +169,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
for ( ; aIt != aEnd; ++aIt )
{
Okular::Annotation * ann = *aIt;
if ( ann->flags() & ( Okular::Annotation::Hidden /*| Okular::Annotation::External*/ ) )
if ( ann->flags() & ( Okular::Annotation::Hidden | Okular::Annotation::ExternallyDrawn ) )
continue;
bool intersects = ann->transformedBoundingRectangle().intersects( nXMin, nYMin, nXMax, nYMax );