From 49dd8b067089c48c1364d6f6851fdfdaab78e0b4 Mon Sep 17 00:00:00 2001 From: nymea Date: Thu, 8 Aug 2019 17:28:48 +0200 Subject: [PATCH] extend default long press timeout --- senic/devicepluginsenic.cpp | 2 +- senic/devicepluginsenic.json | 2 +- senic/nuimo.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/senic/devicepluginsenic.cpp b/senic/devicepluginsenic.cpp index da922927..7d4d95cc 100644 --- a/senic/devicepluginsenic.cpp +++ b/senic/devicepluginsenic.cpp @@ -293,7 +293,7 @@ void DevicePluginSenic::onPluginConfigurationChanged(const ParamTypeId ¶mTyp } if (paramTypeId == senicPluginLongPressTimeParamTypeId) { - qCDebug(dcSenic()) << "Long press time" << value.toUInt(); + qCDebug(dcSenic()) << "Long press time" << value.toInt(); foreach(Nuimo *nuimo, m_nuimos.keys()) { nuimo->setLongPressTime(value.toInt()); } diff --git a/senic/devicepluginsenic.json b/senic/devicepluginsenic.json index cb078851..6dbde0a9 100644 --- a/senic/devicepluginsenic.json +++ b/senic/devicepluginsenic.json @@ -15,7 +15,7 @@ "name": "longPressTime", "displayName": "Long press time", "type": "int", - "defaultValue": 250 + "defaultValue": 500 } ], "vendors": [ diff --git a/senic/nuimo.h b/senic/nuimo.h index 71a040d0..e6b90c3d 100644 --- a/senic/nuimo.h +++ b/senic/nuimo.h @@ -81,7 +81,7 @@ private: uint m_rotationValue; QTimer *m_longPressTimer = nullptr; - int m_longPressTime = 250; + int m_longPressTime = 500; void showMatrix(const QByteArray &matrix, const int &seconds); void printService(QLowEnergyService *service);