mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add supported dive computers to log file
In a more compact format than before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
36749b28d9
commit
ea7a7c6b24
3 changed files with 16 additions and 5 deletions
|
@ -100,10 +100,6 @@ void run_ui()
|
|||
ctxt->setContextProperty("connectionListModel", &connectionListModel);
|
||||
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
|
||||
|
||||
// call again to be able to log
|
||||
// FIXME - this is redundant - but otherwise they don't end up in the AppLog
|
||||
fill_computer_list();
|
||||
|
||||
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
|
||||
qqWindowObject = engine.rootObjects().value(0);
|
||||
if (!qqWindowObject) {
|
||||
|
@ -117,6 +113,9 @@ void run_ui()
|
|||
QScreen *screen = qml_window->screen();
|
||||
QObject::connect(qml_window, &QQuickWindow::screenChanged, QMLManager::instance(), &QMLManager::screenChanged);
|
||||
QMLManager *manager = QMLManager::instance();
|
||||
// now that the log file is initialized...
|
||||
show_computer_list();
|
||||
|
||||
manager->setDevicePixelRatio(qml_window->devicePixelRatio(), qml_window->screen());
|
||||
manager->dlSortModel = sortModel;
|
||||
manager->screenChanged(screen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue