summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-04-14 14:05:23 +0200
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-04-14 14:05:54 +0200
commit4db6f873386e7b21e23efb4a5ca31eb09f3dd94e (patch)
tree4234ec36755f7e95c881d6222c80fc9713be24e1 /src
parentc28cb85841fb5be154c2460efdc82dde012407b9 (diff)
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')
-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 6c309c72d2..4f3e71c478 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