diff options
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/lance/main.cpp | 6 | ||||
-rw-r--r-- | tests/manual/lance/widgets.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/manual/lance/main.cpp b/tests/manual/lance/main.cpp index a8fa6bd402..749a4b1943 100644 --- a/tests/manual/lance/main.cpp +++ b/tests/manual/lance/main.cpp @@ -353,7 +353,7 @@ int main(int argc, char **argv) scaledWidth = width * scalefactor; scaledHeight = height * scalefactor; - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, imageFormat); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); @@ -601,7 +601,7 @@ int main(int argc, char **argv) case PrinterType: { #ifndef QT_NO_PRINTER - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, imageFormat); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); @@ -635,7 +635,7 @@ int main(int argc, char **argv) case PdfType: { #ifndef QT_NO_PRINTER - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, QImage::Format_ARGB32_Premultiplied); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); diff --git a/tests/manual/lance/widgets.h b/tests/manual/lance/widgets.h index 106842d118..583d9e2455 100644 --- a/tests/manual/lance/widgets.h +++ b/tests/manual/lance/widgets.h @@ -178,7 +178,7 @@ public: pt.begin(dev); - PaintCommands paintCommands(m_commands, 800, 800); + PaintCommands paintCommands(m_commands, 800, 800, QImage::Format_ARGB32_Premultiplied); paintCommands.setVerboseMode(m_verboseMode); paintCommands.setCheckersBackground(m_checkersBackground); paintCommands.setType(m_deviceType); |