summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-10-06 19:39:02 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-12-14 12:53:26 (GMT)
commit0295f8da10d6c920511d09f9e506b8bed8c444c3 (patch)
tree33f30236327d2ff801b85e922c9fac50505ebe3e /src/corelib/kernel
parenta3a76a45cf23b0c3981ab2733de13e6f52fe058b (diff)
downloadQt-0295f8da10d6c920511d09f9e506b8bed8c444c3.zip
Qt-0295f8da10d6c920511d09f9e506b8bed8c444c3.tar.gz
Qt-0295f8da10d6c920511d09f9e506b8bed8c444c3.tar.bz2
Determine QPrinterInfo's supportedPaperSizes on demand.
The paper size determination requires a cupsGetPPD(), which can be a slow HTTP download. So doing it on demand makes QPrinterInfo::defaultPrinter() much faster, because it doesn't actually need the paper sizes at all. Before this fix, it was requesting the PPD file of every known CUPS printer, every time it was called. My battery of unittests for code that uses QPrinter went from 19 minutes when the cups print server is switched off, to 13 seconds! This fix also removes some code duplication, which is always nice. Task-number: 232664, QTBUG-3033 Reviewed-by: Trond
Diffstat (limited to 'src/corelib/kernel')
0 files changed, 0 insertions, 0 deletions