Skip to content

Commit

Permalink
Register all QML types properly into a module, declaratively
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMcInnes committed Nov 6, 2023
1 parent 68a0d6d commit 06522cc
Show file tree
Hide file tree
Showing 191 changed files with 854 additions and 1,182 deletions.
4 changes: 2 additions & 2 deletions ApplicationContent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import QtQuick
import Victron.VenusOS
import "/components/Utils.js" as Utils
import Victron.Utils

Item {
id: root
Expand Down Expand Up @@ -70,7 +70,7 @@ Item {
// testCloseOnClick() when clicking outside of the focused text field, to auto-close the VKB.
Component.onCompleted: {
if (Qt.platform.os !== "wasm") {
_inputComponent = Qt.createComponent(Qt.resolvedUrl("qrc:/components/InputPanel.qml"), Component.Asynchronous)
_inputComponent = Qt.createComponent(Qt.resolvedUrl("qrc:/qt/qml/Victron/VenusOS/components/InputPanel.qml"), Component.Asynchronous)
_inputComponent.statusChanged.connect(function() {
if (_inputComponent.status === Component.Ready) {
Global.inputPanel = _inputComponent.createObject(root, { mainViewItem: mainView })
Expand Down
Loading

0 comments on commit 06522cc

Please sign in to comment.