qprintengine_mac: use const methods more
to avoid implicit detach Change-Id: I033a5083e259c3c90b061c28b3e1b76e2f2cd33f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
b86b415337
commit
ea6c037435
@ -219,9 +219,9 @@ void QMacPrintEnginePrivate::initialize()
|
||||
if (!resolutions.isEmpty() && mode != QPrinter::ScreenResolution) {
|
||||
std::sort(resolutions.begin(), resolutions.end());
|
||||
if (resolutions.count() > 1 && mode == QPrinter::HighResolution)
|
||||
resolution.hRes = resolution.vRes = resolutions.last();
|
||||
resolution.hRes = resolution.vRes = resolutions.constLast();
|
||||
else
|
||||
resolution.hRes = resolution.vRes = resolutions.first();
|
||||
resolution.hRes = resolution.vRes = resolutions.constFirst();
|
||||
if (resolution.hRes == 0)
|
||||
resolution.hRes = resolution.vRes = 600;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user