diff --git a/examples/meshtastic-qt6/qml/ext/dialogs/Dialogs.qml b/examples/meshtastic-qt6/qml/ext/dialogs/Dialogs.qml index adf4d8d..bcf3030 100644 --- a/examples/meshtastic-qt6/qml/ext/dialogs/Dialogs.qml +++ b/examples/meshtastic-qt6/qml/ext/dialogs/Dialogs.qml @@ -56,6 +56,6 @@ Item { var keyboard = (text !== "") rootItem.showKeyboard(keyboard) loader.item.open() - if (keyboard) loader.item.focus() + if (keyboard) loader.item.setFocus() } } diff --git a/examples/meshtastic-qt6/qml/ext/dialogs/Input.qml b/examples/meshtastic-qt6/qml/ext/dialogs/Input.qml index 3c8833a..edd37d0 100644 --- a/examples/meshtastic-qt6/qml/ext/dialogs/Input.qml +++ b/examples/meshtastic-qt6/qml/ext/dialogs/Input.qml @@ -14,7 +14,7 @@ Dialog { property alias value: spinBox.value property string callback - function focus() { edit.forceActiveFocus() } + function setFocus() { edit.forceActiveFocus() } Column { width: parent.width diff --git a/examples/meshtastic-qt6/qml/ext/dialogs/InputMobile.qml b/examples/meshtastic-qt6/qml/ext/dialogs/InputMobile.qml index 4b19fc0..bfbd73e 100644 --- a/examples/meshtastic-qt6/qml/ext/dialogs/InputMobile.qml +++ b/examples/meshtastic-qt6/qml/ext/dialogs/InputMobile.qml @@ -16,7 +16,7 @@ Dialog { property alias value: spinBox.value property string callback - function focus() { edit.forceActiveFocus() } + function setFocus() { edit.forceActiveFocus() } Column { width: parent.width diff --git a/examples/meshtastic/lisp/meshtastic-proto.lisp b/examples/meshtastic/lisp/meshtastic-proto.lisp index 40a6af2..f0ded1a 100644 --- a/examples/meshtastic/lisp/meshtastic-proto.lisp +++ b/examples/meshtastic/lisp/meshtastic-proto.lisp @@ -1,6 +1,8 @@ -;;; loading protobuf Lisp source files is much faster (especially on mobile) -;;; compared to compiled files, and doesn't seem to impact performance at -;;; runtime (in this use case) +;;; Note (ECL only) +;;; +;;; Loading protobuf Lisp source files is much faster (especially on mobile) +;;; compared to C compiled files, and doesn't seem to impact performance at +;;; runtime (in this use case). (in-package :qml-user) diff --git a/examples/meshtastic/qml/ext/dialogs/Dialogs.qml b/examples/meshtastic/qml/ext/dialogs/Dialogs.qml index 5f5caf1..b04d6f4 100644 --- a/examples/meshtastic/qml/ext/dialogs/Dialogs.qml +++ b/examples/meshtastic/qml/ext/dialogs/Dialogs.qml @@ -56,6 +56,6 @@ Item { var keyboard = (text !== "") rootItem.showKeyboard(keyboard) loader.item.open() - if (keyboard) loader.item.focus() + if (keyboard) loader.item.setFocus() } } diff --git a/examples/meshtastic/qml/ext/dialogs/Input.qml b/examples/meshtastic/qml/ext/dialogs/Input.qml index 575330b..c825501 100644 --- a/examples/meshtastic/qml/ext/dialogs/Input.qml +++ b/examples/meshtastic/qml/ext/dialogs/Input.qml @@ -13,7 +13,7 @@ Dialog { property alias value: spinBox.value property string callback - function focus() { edit.forceActiveFocus() } + function setFocus() { edit.forceActiveFocus() } Column { width: parent.width diff --git a/examples/meshtastic/qml/ext/dialogs/InputMobile.qml b/examples/meshtastic/qml/ext/dialogs/InputMobile.qml index b556c0a..faf98af 100644 --- a/examples/meshtastic/qml/ext/dialogs/InputMobile.qml +++ b/examples/meshtastic/qml/ext/dialogs/InputMobile.qml @@ -15,7 +15,7 @@ Dialog { property alias value: spinBox.value property string callback - function focus() { edit.forceActiveFocus() } + function setFocus() { edit.forceActiveFocus() } Column { width: parent.width diff --git a/examples/meshtastic/readme.md b/examples/meshtastic/readme.md index d10fe4e..9cd0246 100644 --- a/examples/meshtastic/readme.md +++ b/examples/meshtastic/readme.md @@ -13,16 +13,6 @@ not available, in order to communicate with short text messages. This kind of mesh network is limited to about 70 nodes/radios/users to remain reliable. -Change log ----------- - -* 2024-03-04: background mode for both android and iOS (now tested); radio - packets (like text messages) sent to app while in background are saved in a - file and processed when app is brought back to foreground; on new messages, - a red circle on the user name indicates the number of unread messages - - - Technical notes --------------- @@ -32,7 +22,7 @@ version. The app uses both **BLE** (bluetooth low energy) and the **protobufs** serialization library version 3. -For BLE you need to build the plugin in `cpp/` first (written in Qt5). +For BLE you need to build the plugin in `cpp/` first (written in Qt5/Qt6). The cl-protobufs library is included here because the official version doesn't work without the C++ plugin installed (which we don't need here). So I made