Update printer metrics after resolution change.

[ChangeLog][QtPrintSupport] Fixed QPrinter::{width,height} return values
when the resolution is changed in the print dialog.

Task-number: QTBUG-43124
Change-Id: Ib805907affed4b1ffb48e6b1ff89f7a79ab3e329
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
Marcel Krems 2014-12-09 14:58:26 +01:00 committed by Kai Pastor
parent c28718b88b
commit 593e3f2fbb

View File

@ -931,6 +931,8 @@ void QWin32PrintEnginePrivate::initHDC()
default:
break;
}
updateMetrics();
}
void QWin32PrintEnginePrivate::release()