Commit 8ac5c9e9 authored by Enrico Ros's avatar Enrico Ros
Browse files

Misc updates.

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=346259
parent 126c71b3
...@@ -76,6 +76,9 @@ void QOutputDev::endPage() ...@@ -76,6 +76,9 @@ void QOutputDev::endPage()
dataPtr = getBitmap()->getDataPtr(); dataPtr = getBitmap()->getDataPtr();
m_image = QImage((uchar*)dataPtr.rgb8, bw, bh, 32, 0, 0, QImage::IgnoreEndian); m_image = QImage((uchar*)dataPtr.rgb8, bw, bh, 32, 0, 0, QImage::IgnoreEndian);
m_image.setAlphaBuffer( false ); m_image.setAlphaBuffer( false );
// TODO HACK: unload memory used by bitmap
//SplashOutputDev::startPage(pageNum, state (with pix size={0,0}) );
} }
void QOutputDev::updateFont(GfxState *state) void QOutputDev::updateFont(GfxState *state)
......
...@@ -103,7 +103,7 @@ bool KPDFPage::hasLink( int mouseX, int mouseY ) const ...@@ -103,7 +103,7 @@ bool KPDFPage::hasLink( int mouseX, int mouseY ) const
{ {
//TODO this. //TODO this.
//Sample implementation using a small rect as 'active' link zone //Sample implementation using a small rect as 'active' link zone
return QRect( 50,50, 100,100 ).contains( mouseX, mouseY ); return QRect( 20,20, 100,50 ).contains( mouseX, mouseY );
} }
void KPDFPage::setPixmap( const QImage & image ) void KPDFPage::setPixmap( const QImage & image )
......
...@@ -61,7 +61,8 @@ public: ...@@ -61,7 +61,8 @@ public:
/*void setPixmapOverlayNotations( ..DOMdescription.. );*/ /*void setPixmapOverlayNotations( ..DOMdescription.. );*/
void setThumbnail( const QImage & image ); void setThumbnail( const QImage & image );
/*void setTextPage( TextOutputDev * );*/ /*void setTextPage( TextOutputDev * );*/
/*void setLinks( ..SomeStruct.. );*/ /*void setLinks( ..SomeStruct.. ); or (better): */
/*void addLink( QFloatRect( normalizedRect ), int destPage, int destPos ); */
// FIND command // FIND command
//bool hasText( QString & text ); //bool hasText( QString & text );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment