extend default long press timeout

master
nymea 2019-08-08 17:28:48 +02:00
parent 575203aeaf
commit 49dd8b0670
3 changed files with 3 additions and 3 deletions

View File

@ -293,7 +293,7 @@ void DevicePluginSenic::onPluginConfigurationChanged(const ParamTypeId &paramTyp
}
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());
}

View File

@ -15,7 +15,7 @@
"name": "longPressTime",
"displayName": "Long press time",
"type": "int",
"defaultValue": 250
"defaultValue": 500
}
],
"vendors": [

View File

@ -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);