Summary: | Can't compile because of protected method | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Jiri Klement <jiri.klement> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jiri Klement
2007-01-17 13:59:55 UTC
Okular::PixmapRequest::swap() must not be public. SVN commit 624631 by pino: A bit ugly hack to make it compile better. BUG: 140189 Tobias, any better solution than the previous situation? CCMAIL: tokoe@kde.org M +9 -1 document.cpp M +3 -0 document.h --- trunk/playground/graphics/okular/core/document.cpp #624630:624631 @@ -553,7 +553,7 @@ m_pixmapRequestsStack.removeAll ( request ); if ( (int)m_rotation % 2 ) - request->swap(); + m_parent->doSwap( request ); m_generator->generatePixmap ( request ); } @@ -2135,6 +2135,14 @@ kDebug() << "PageSize no: " << newsize << endl; } +void Document::doSwap( PixmapRequest * pm ) +{ + if ( !pm ) + return; + + pm->swap(); +} + /** DocumentViewport **/ DocumentViewport::DocumentViewport( int n ) --- trunk/playground/graphics/okular/core/document.h #624630:624631 @@ -528,6 +528,7 @@ private: class Private; Private* const d; + friend class Private; Q_DISABLE_COPY( Document ) @@ -535,6 +536,8 @@ Q_PRIVATE_SLOT( d, void slotTimedMemoryCheck() ) Q_PRIVATE_SLOT( d, void sendGeneratorRequest() ) Q_PRIVATE_SLOT( d, void rotationFinished( int page ) ) + + void doSwap( PixmapRequest * ); }; |