summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-04-14 12:05:23 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-04-14 12:05:54 (GMT)
commit4db6f873386e7b21e23efb4a5ca31eb09f3dd94e (patch)
tree4234ec36755f7e95c881d6222c80fc9713be24e1 /src/gui/painting
parentc28cb85841fb5be154c2460efdc82dde012407b9 (diff)
downloadQt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.zip
Qt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.tar.gz
Qt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.tar.bz2
Adding note about setting properties to QPrinter
Setting properties on an invalid printer is not supported. Use isValid() to check if it valid. Rev-by: Trond Kjernåsen Rev-by: Geir Vattekar
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qprinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qprinter.cpp b/src/gui/painting/qprinter.cpp
index 6c309c7..4f3e71c 100644
--- a/src/gui/painting/qprinter.cpp
+++ b/src/gui/painting/qprinter.cpp
@@ -284,6 +284,10 @@ void QPrinterPrivate::addToManualSetList(QPrintEngine::PrintEnginePropertyKey ke
to send PostScript or PDF output to the printer. As an alternative,
the printProgram() function can be used to specify the command or utility
to use instead of the system default.
+
+ Note that setting parameters like paper size and resolution on an
+ invalid printer is undefined. You can use QPrinter::isValid() to
+ verify this before changing any parameters.
QPrinter supports a number of parameters, most of which can be
changed by the end user through a \l{QPrintDialog}{print dialog}. In