summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qprintengine_win.cpp
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 /src/gui/painting/qprintengine_win.cpp
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 'src/gui/painting/qprintengine_win.cpp')
-rw-r--r--src/gui/painting/qprintengine_win.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/painting/qprintengine_win.cpp b/src/gui/painting/qprintengine_win.cpp
index 374bfa0..d029b1e 100644
--- a/src/gui/painting/qprintengine_win.cpp
+++ b/src/gui/painting/qprintengine_win.cpp
@@ -1240,6 +1240,7 @@ void QWin32PrintEngine::setProperty(PrintEnginePropertyKey key, const QVariant &
d->updateOrigin();
break;
+ case PPK_CopyCount: // fallthrough
case PPK_NumberOfCopies:
if (!d->devMode)
break;
@@ -1406,6 +1407,14 @@ QVariant QWin32PrintEngine::property(PrintEnginePropertyKey key) const
value = d->fullPage;
break;
+ case PPK_CopyCount:
+ value = d->num_copies;
+ break;
+
+ case PPK_SupportsMultipleCopies:
+ value = true;
+ break;
+
case PPK_NumberOfCopies:
value = 1;
break;