Saving physical size changes of screen on Windows
On windows (tested on win7) physicalSizeMM is changed after changing screen resolution. We need to save new size. Change-Id: I1b38d9ba2af9679812a973737a724c9a9c5395da Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
73a98ccc46
commit
6233f006df
@ -306,6 +306,8 @@ QList<QPlatformScreen *> QWindowsScreen::virtualSiblings() const
|
|||||||
|
|
||||||
void QWindowsScreen::handleChanges(const QWindowsScreenData &newData)
|
void QWindowsScreen::handleChanges(const QWindowsScreenData &newData)
|
||||||
{
|
{
|
||||||
|
m_data.physicalSizeMM = newData.physicalSizeMM;
|
||||||
|
|
||||||
if (m_data.geometry != newData.geometry) {
|
if (m_data.geometry != newData.geometry) {
|
||||||
m_data.geometry = newData.geometry;
|
m_data.geometry = newData.geometry;
|
||||||
QWindowSystemInterface::handleScreenGeometryChange(screen(),
|
QWindowSystemInterface::handleScreenGeometryChange(screen(),
|
||||||
|
Loading…
Reference in New Issue
Block a user