1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-16 12:42:26 -04:00

Fix QML warning

This commit is contained in:
srcejon 2025-06-12 09:21:33 +01:00
parent 0e93251349
commit 89a25c8a7f

View File

@ -275,7 +275,7 @@ Item {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: { onClicked: (mouse) => {
if (mouse.button === Qt.LeftButton) { if (mouse.button === Qt.LeftButton) {
selected = !selected selected = !selected
if (selected) { if (selected) {
@ -320,7 +320,7 @@ Item {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: { onClicked: (mouse) => {
if (mouse.button === Qt.LeftButton) { if (mouse.button === Qt.LeftButton) {
selected = !selected selected = !selected
if (selected) { if (selected) {