diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2018-11-23 17:19:14 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-11-29 18:07:30 +0000 |
commit | 6d58a1cecbaf0a6ed7d751f67450a86c742770ff (patch) | |
tree | 0eb0a3b7ccf35694ef1d3285bbc78ed1b4079050 /src/plugins/platforms | |
parent | 0cf5648ce6df8b60090a14f738dd5d66643a0532 (diff) |
Fix QPpdPrintDevice::isDefault
How to test:
* Have two printers
* Use lpoptions -d to set the default printer to be one and then the
other
* Use lpstat -d to check setting the default printer worked
* Use this simple test program and check the resulting values make
sense
qDebug() << "DefaultPrinter" << QPrinterInfo::defaultPrinter().printerName();
const QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
for(const QPrinterInfo &pi : list) {
qDebug() << pi.printerName() << pi.isDefault();
}
Fixes: QTBUG-70317
Change-Id: I535d11451c568630a374f5c37d8cac32cbb6d3ab
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions