mirror of
https://gitlab.com/eql/lqml.git
synced 2026-02-05 07:12:40 -08:00
example 'meshtastic': add animation in broadcast mode
This commit is contained in:
parent
2c67441cdf
commit
95fbbc19a6
4 changed files with 39 additions and 8 deletions
|
|
@ -69,6 +69,7 @@ Rectangle {
|
|||
if (person.current) {
|
||||
view.currentIndex = broadcast ? 0 : i
|
||||
view.positionViewAtIndex(view.currentIndex, ListView.Contain)
|
||||
rootItem.broadcast = broadcast
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -154,6 +155,7 @@ Rectangle {
|
|||
function selected() {
|
||||
view.currentIndex = index
|
||||
Lisp.call("lora:change-receiver", model.nodeNum>>>0) // uint32
|
||||
rootItem.broadcast = (index === 0)
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
|||
|
|
@ -286,6 +286,38 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: broadcast
|
||||
anchors.right: send.left
|
||||
anchors.bottom: parent.top
|
||||
anchors.margins: 3
|
||||
width: 38
|
||||
height: width
|
||||
opacity: 0.7
|
||||
source: "../img/broadcast.png"
|
||||
visible: send.visible && animation.running
|
||||
|
||||
SequentialAnimation {
|
||||
id: animation
|
||||
loops: Animation.Infinite
|
||||
running: rootItem.broadcast
|
||||
|
||||
ScaleAnimator {
|
||||
target: broadcast
|
||||
from: 0.8; to: 1.0
|
||||
duration: 500
|
||||
easing.type: Easing.InOutSine
|
||||
}
|
||||
|
||||
ScaleAnimator {
|
||||
target: broadcast
|
||||
from: 1.0; to: 0.8
|
||||
duration: 500
|
||||
easing.type: Easing.InOutSine
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ext.Emojis {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ Item {
|
|||
|
||||
property double headerHeight: 48
|
||||
property bool mobile: (Qt.platform.os === "android") || (Qt.platform.os === "ios")
|
||||
property bool broadcast: false
|
||||
|
||||
function showKeyboard(show) {
|
||||
show ? Qt.inputMethod.show() : Qt.inputMethod.hide()
|
||||
|
|
|
|||
|
|
@ -75,15 +75,11 @@ doesn't have a display, use `123456` as your PIN.
|
|||
|
||||
On Windows it didn't work for me if not paired previously.
|
||||
|
||||
It may occur that your radio device is sometimes not found; first
|
||||
It may occur that your radio device is sometimes not found; some suggestions:
|
||||
|
||||
* try to press-and-hold on the radio icon (will restart device discovery)
|
||||
|
||||
Only if this doesn't work, you may
|
||||
|
||||
* try to turn bluetooth off and on again, and/or:
|
||||
* try to reboot your radios, and/or:
|
||||
* try to unpair your radios from all computers/devices
|
||||
* try to unpair your radio from current device
|
||||
* try to turn bluetooth off and on again
|
||||
* try to reboot your radio
|
||||
|
||||
A generic bluetooth app like **nRF Connect** may help in order to see if the
|
||||
devices themselves work and are able to connect.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue