Okular
7 #include "rotationjob_p.h"
14 :
ThreadWeaver::QObjectDecorator(new RotationJobInternal(image, oldRotation, newRotation))
18 , mIsPartialUpdate(false)
22 void RotationJob::setPage(PagePrivate *pd)
32 void RotationJob::setIsPartialUpdate(
bool partialUpdate)
34 mIsPartialUpdate = partialUpdate;
42 PagePrivate *RotationJob::page()
const
52 bool RotationJob::isPartialUpdate()
const
54 return mIsPartialUpdate;
100 , mOldRotation(oldRotation)
101 , mNewRotation(newRotation)
105 QImage RotationJobInternal::image()
const
107 return mRotatedImage;
110 Rotation RotationJobInternal::rotation()
const
120 if (mOldRotation == mNewRotation) {
121 mRotatedImage = mImage;
125 const QTransform matrix = RotationJob::rotationMatrix(mOldRotation, mNewRotation);
127 mRotatedImage = mImage.transformed(matrix);
130 #include "moc_rotationjob_p.cpp"
The documentation to the global Okular namespace.
Base class for objects being notified when something changes.
@ Rotation180
Rotated 180 degrees clockwise.
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
@ Rotation90
Rotated 90 degrees clockwise.
@ Rotation270
Rotated 2700 degrees clockwise.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.