diff options
author | Michael Bruning <michael.bruning@theqtcompany.com> | 2016-04-05 14:02:13 +0200 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@theqtcompany.com> | 2016-04-13 08:23:58 +0000 |
commit | a3d2ee4eabc4e491ac64976aea47c2bdf650cabe (patch) | |
tree | 606573cf4d8825b96759f08bd82aa303a1cf623e /tests | |
parent | 22a550303618202135e58f5673e7b8935d578687 (diff) |
Remove default values for printToPdf callbacks and unify API.
Adds default QPageLayout values.
Change-Id: Ibf2964ecd86350a51d682e385973f830ac4347a7
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp index 95e6f5374..2740b698c 100644 --- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp +++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp @@ -5006,11 +5006,11 @@ void tst_QWebEnginePage::printToPdf() QTRY_VERIFY(!QFile::exists(path)); CallbackSpy<QByteArray> successfulSpy; - page.printToPdf(layout, successfulSpy.ref()); + page.printToPdf(successfulSpy.ref(), layout); QVERIFY(successfulSpy.waitForResult().length() > 0); CallbackSpy<QByteArray> failedInvalidLayoutSpy; - page.printToPdf(QPageLayout(), failedInvalidLayoutSpy.ref()); + page.printToPdf(failedInvalidLayoutSpy.ref(), QPageLayout()); QCOMPARE(failedInvalidLayoutSpy.waitForResult().length(), 0); } |