Correct initial window size with highDPI

Use the scaling factor when calculating the initial size of the
platform window.

Change-Id: Ie21f0da14e32ac437efbc304a3fd9722a7f8615e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Paul Olav Tvete 2017-01-04 10:03:20 +01:00 committed by Tor Arne Vestbø
parent f480196f1b
commit 22138f5907

View File

@ -60,7 +60,7 @@ QPlatformWindow::QPlatformWindow(QWindow *window)
, d_ptr(new QPlatformWindowPrivate)
{
Q_D(QPlatformWindow);
d->rect = window->geometry();
d->rect = QHighDpi::toNativePixels(window->geometry(), window);
}
/*!