mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
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:
parent
846a3e3c83
commit
f31db87a63
|
@ -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)
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue