[poppler] poppler/qt4/tests: test-poppler-qt4.cpp,1.4,1.5

Albert Astals Cid aacid at freedesktop.org
Sat Dec 3 13:35:49 PST 2005


Update of /cvs/poppler/poppler/qt4/tests
In directory gabe:/tmp/cvs-serv569/qt4/tests

Modified Files:
	test-poppler-qt4.cpp 
Log Message:
More docs for the Qt4 frontend, patch by Stefan Kebekus


Index: test-poppler-qt4.cpp
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/test-poppler-qt4.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test-poppler-qt4.cpp	28 Nov 2005 22:50:20 -0000	1.4
+++ test-poppler-qt4.cpp	3 Dec 2005 21:35:46 -0000	1.5
@@ -39,12 +39,13 @@
             if (useArthur)
             {
                 qDebug() << "Displaying page using Arthur backend: " << m_currentPage;
-                page->renderToPixmap(pixmap);
+                page->renderToPixmap(pixmap, 72.0, 72.0);
             }
             else
             {
                 qDebug() << "Displaying page using Splash backend: " << m_currentPage;
-                page->splashRenderToPixmap(&pixmap, -1, -1, 0, 0);
+		delete pixmap;
+                pixmap = page->splashRenderToPixmap(-1, -1, 0, 0, 72.0, 72.0);
             }
             update();
             delete page;



More information about the poppler mailing list