summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2009-06-06 16:17:26 +0200
committerAlbert Astals Cid <aacid@kde.org>2009-06-07 01:34:53 +0200
commit24580fcd2be74db5f3140bdb2ebff8431b7d3f1e (patch)
treefcae3eb989ab83eb6ce096e1ca13e8c411e4d293 /qt4
parent50cf7cffff760e41774957ad8f1f92803142438e (diff)
Add a debug saying how much rendering took
Diffstat (limited to 'qt4')
-rw-r--r--qt4/tests/test-poppler-qt4.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt4/tests/test-poppler-qt4.cpp b/qt4/tests/test-poppler-qt4.cpp
index 0ec917fa..1726bfd9 100644
--- a/qt4/tests/test-poppler-qt4.cpp
+++ b/qt4/tests/test-poppler-qt4.cpp
@@ -61,7 +61,9 @@ void PDFDisplay::display()
Poppler::Page *page = doc->page(m_currentPage);
if (page) {
qDebug() << "Displaying page using" << backendString << "backend: " << m_currentPage;
+ QTime t = QTime::currentTime();
image = page->renderToImage();
+ qDebug() << "Rendering took" << t.msecsTo(QTime::currentTime()) << "msecs";
qDeleteAll(textRects);
if (showTextRects)
{