From cd98cb8921861b586724abed307bfead62e4b74a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 28 Sep 2019 12:04:52 -0700 Subject: Mobile: add more debugging output for screen width issue Somehow we need to be able to figure out which width information is correct. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 1 + mobile-widgets/qmlmanager.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 51d591721..3390579fb 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -702,6 +702,7 @@ if you have network connectivity and want to sync your data to cloud storage."), rootItem.visible = true diveList.opacity = 1 rootItem.opacity = 1 + console.log("setting the defaultColumnWidth to " + Kirigami.Units.gridUnit * 21) pageStack.defaultColumnWidth = Kirigami.Units.gridUnit * 21 manager.appInitialized() } diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 126cca7b8..fcb25e4a5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1717,6 +1717,7 @@ void QMLManager::setDevicePixelRatio(qreal dpr, QScreen *screen) void QMLManager::screenChanged(QScreen *screen) { + qDebug("QMLManager received screen changed notification (%d,%d)", screen->size().width(), screen->size().height()); m_lastDevicePixelRatio = screen->devicePixelRatio(); emit sendScreenChanged(screen); } -- cgit v1.2.3-70-g09d2