summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprinter
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2010-02-15 10:00:56 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2010-02-15 10:00:56 (GMT)
commit77715148d635c31d7042140c93013a1af77f2967 (patch)
tree32180f470d23c702d18ceb1a1353623ed308bd84 /tests/auto/qprinter
parent4a47bf6a06a4f7ebbf2336cd643c50332ac76d6d (diff)
downloadQt-77715148d635c31d7042140c93013a1af77f2967.zip
Qt-77715148d635c31d7042140c93013a1af77f2967.tar.gz
Qt-77715148d635c31d7042140c93013a1af77f2967.tar.bz2
Replaced the numCopies()/setNumCopies() and actualNumCopies() API.
Obsoleted the numCopies()/setNumCopies()/actualNumCopies() with copyCount()/setCopyCount() and supportsMultipleCopies(). The old numCopies() was confusing since it returned the number of times a job had to be printed to get the copies you wanted. Now copyCount() and setCopyCount() are symmetric, and always returns the number of copies the user want to print. Task-number: QTBUG-5605 Reviewed-by: Kim
Diffstat (limited to 'tests/auto/qprinter')
-rw-r--r--tests/auto/qprinter/tst_qprinter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qprinter/tst_qprinter.cpp b/tests/auto/qprinter/tst_qprinter.cpp
index b1ff425..7e8ce84 100644
--- a/tests/auto/qprinter/tst_qprinter.cpp
+++ b/tests/auto/qprinter/tst_qprinter.cpp
@@ -106,7 +106,7 @@ private slots:
void testCustomPageSizes();
void printDialogCompleter();
- void testActualNumCopies();
+ void testCopyCount();
void taskQTBUG4497_reusePrinterOnDifferentFiles();
@@ -455,7 +455,7 @@ void tst_QPrinter::testNonExistentPrinter()
printer.pageSize();
printer.orientation();
printer.fullPage();
- printer.setNumCopies(1);
+ printer.setCopyCount(1);
printer.printerName();
// nor metrics
@@ -966,11 +966,11 @@ void tst_QPrinter::printDialogCompleter()
#endif
}
-void tst_QPrinter::testActualNumCopies()
+void tst_QPrinter::testCopyCount()
{
QPrinter p;
- p.setNumCopies(15);
- QCOMPARE(p.actualNumCopies(), 15);
+ p.setCopyCount(15);
+ QCOMPARE(p.copyCount(), 15);
}
static void printPage(QPainter *painter)