diff options
author | 2018-09-04 11:18:43 +0200 | |
---|---|---|
committer | 2018-09-11 17:22:58 -0700 | |
commit | d0edc296360e7653a4c8b672cfb136581c4a10f0 (patch) | |
tree | 6d42fcee2174770cd1e0c8edd892540553ee40b6 /mobile-widgets/qml/Settings.qml | |
parent | a71afd31ee66edf45c8970dcbd6514d7c4b5e9f0 (diff) | |
download | subsurface-d0edc296360e7653a4c8b672cfb136581c4a10f0.tar.gz |
core,tests: change qml register function
In order to address the C++ object directy in qml, a different
registration is needed.
qmlRegisterType, registers the C++ class, allowing qml code to inherit
from it and make qml objects. This is needed for graphical elemnets
like profile and map
setContentProperty, registers the C++ object, thus allowing signals to be
catched.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 45b588c93..4ba414adf 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -45,7 +45,7 @@ Kirigami.ScrollablePage { Layout.preferredHeight: Kirigami.Units.gridUnit * 2 } Controls.Label { - text: prefs.credentialStatus === SsrfPrefs.CS_NOCLOUD ? qsTr("Not applicable") : prefs.cloudUserName + text: prefs.credentialStatus === CloudStatus.CS_NOCLOUD ? qsTr("Not applicable") : prefs.cloudUserName Layout.alignment: Qt.AlignRight Layout.preferredWidth: gridWidth * 0.60 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 @@ -333,7 +333,7 @@ Kirigami.ScrollablePage { inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true onActivated: { - general.set_default_cylinder(defaultCylinderBox.currentText) + PrefGeneral.set_default_cylinder(defaultCylinderBox.currentText) } } } |