diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-14 05:48:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-14 09:43:33 -0700 |
commit | 5909e438c9394f7e831d7d9f912788ade87b6b1f (patch) | |
tree | 9475e6057d26155b813798bd49f3f4b1e7913923 /subsurface-mobile-helper.cpp | |
parent | 287823626823ad139986685f1a310fe2539aeac0 (diff) | |
download | subsurface-5909e438c9394f7e831d7d9f912788ade87b6b1f.tar.gz |
Make it easy to access the sort model from the QML manager
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-mobile-helper.cpp')
-rw-r--r-- | subsurface-mobile-helper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp index d8430a597..2093af9f4 100644 --- a/subsurface-mobile-helper.cpp +++ b/subsurface-mobile-helper.cpp @@ -74,7 +74,9 @@ void run_ui() qDebug() << "qqwindow devicePixelRatio" << qml_window->devicePixelRatio() << qml_window->screen()->devicePixelRatio(); QScreen *screen = qml_window->screen(); QObject::connect(qml_window, &QQuickWindow::screenChanged, QMLManager::instance(), &QMLManager::screenChanged); - QMLManager::instance()->screenChanged(screen); + QMLManager *manager = QMLManager::instance(); + manager->dlSortModel = sortModel; + manager->screenChanged(screen); qDebug() << "qqwindow screen has ldpi/pdpi" << screen->logicalDotsPerInch() << screen->physicalDotsPerInch(); #if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) qml_window->setHeight(1200); |