[poppler] qt5/tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 22 10:00:31 UTC 2018


 qt5/tests/test-render-to-file.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 61fe5ae92794feaaaf4eb8abb01d55d152e28dd7
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Dec 22 10:59:36 2018 +0100

    qt5: test-render-to-file: Save files as png
    
    Is a greeeeeeeeeeeeeat disk space saver

diff --git a/qt5/tests/test-render-to-file.cpp b/qt5/tests/test-render-to-file.cpp
index ddc04df1..ee62d5cf 100644
--- a/qt5/tests/test-render-to-file.cpp
+++ b/qt5/tests/test-render-to-file.cpp
@@ -60,7 +60,7 @@ int main( int argc, char **argv )
             QTime t = QTime::currentTime();
             QImage image = page->renderToImage();
             qDebug() << "Rendering took" << t.msecsTo(QTime::currentTime()) << "msecs";
-            image.save(QStringLiteral("test-render-to-file%1.ppm").arg(i));
+            image.save(QStringLiteral("test-render-to-file%1.png").arg(i));
             delete page;
         }
     }


More information about the poppler mailing list