mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-05 00:58:46 +00:00
make swap() private
svn path=/trunk/KDE/kdegraphics/okular/; revision=744918
This commit is contained in:
parent
984d38ab9e
commit
66376cf31f
|
@ -608,7 +608,7 @@ void DocumentPrivate::sendGeneratorRequest()
|
|||
m_pixmapRequestsStack.removeAll ( request );
|
||||
|
||||
if ( (int)m_rotation % 2 )
|
||||
request->swap();
|
||||
request->d->swap();
|
||||
|
||||
// we always have to unlock _before_ the generatePixmap() because
|
||||
// a sync generation would end with requestDone() -> deadlock, and
|
||||
|
|
|
@ -407,9 +407,9 @@ Page* PixmapRequest::page() const
|
|||
return d->mPage;
|
||||
}
|
||||
|
||||
void PixmapRequest::swap()
|
||||
void PixmapRequestPrivate::swap()
|
||||
{
|
||||
qSwap( d->mWidth, d->mHeight );
|
||||
qSwap( mWidth, mHeight );
|
||||
}
|
||||
|
||||
class Okular::ExportFormatPrivate : public QSharedData
|
||||
|
|
|
@ -515,11 +515,6 @@ class OKULAR_EXPORT PixmapRequest
|
|||
*/
|
||||
Page *page() const;
|
||||
|
||||
/**
|
||||
* Internal usage.
|
||||
*/
|
||||
void swap();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY( PixmapRequest )
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ class GeneratorPrivate
|
|||
class PixmapRequestPrivate
|
||||
{
|
||||
public:
|
||||
void swap();
|
||||
|
||||
int mId;
|
||||
int mPageNumber;
|
||||
int mWidth;
|
||||
|
|
Loading…
Reference in New Issue
Block a user