Fixed TST_VPoster::BigPoster test in Windows.
--HG-- branch : feature
This commit is contained in:
parent
db014092a3
commit
8c5f14937d
|
@ -46,12 +46,14 @@ void TST_VPoster::BigPoster()
|
|||
QPrinter printer;
|
||||
printer.setResolution(96);// By default
|
||||
printer.setPaperSize(QPrinter::A4);
|
||||
printer.setFullPage(true);
|
||||
// We need to set full page because otherwise QPrinter->pageRect returns different values in Windows and Linux
|
||||
|
||||
const QImage image(2622, 3178, QImage::Format_RGB32); // Little bit bigger than A1
|
||||
VPoster posterazor(&printer);
|
||||
const QVector<QImage> poster = posterazor.Generate(image, 1, 1);
|
||||
|
||||
QCOMPARE(poster.size(), 16);
|
||||
QCOMPARE(poster.size(), 12);
|
||||
|
||||
for (int i=0; i < poster.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user