extend default long press timeout
This commit is contained in:
parent
575203aeaf
commit
49dd8b0670
@ -293,7 +293,7 @@ void DevicePluginSenic::onPluginConfigurationChanged(const ParamTypeId ¶mTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (paramTypeId == senicPluginLongPressTimeParamTypeId) {
|
if (paramTypeId == senicPluginLongPressTimeParamTypeId) {
|
||||||
qCDebug(dcSenic()) << "Long press time" << value.toUInt();
|
qCDebug(dcSenic()) << "Long press time" << value.toInt();
|
||||||
foreach(Nuimo *nuimo, m_nuimos.keys()) {
|
foreach(Nuimo *nuimo, m_nuimos.keys()) {
|
||||||
nuimo->setLongPressTime(value.toInt());
|
nuimo->setLongPressTime(value.toInt());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
"name": "longPressTime",
|
"name": "longPressTime",
|
||||||
"displayName": "Long press time",
|
"displayName": "Long press time",
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"defaultValue": 250
|
"defaultValue": 500
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"vendors": [
|
"vendors": [
|
||||||
|
|||||||
@ -81,7 +81,7 @@ private:
|
|||||||
|
|
||||||
uint m_rotationValue;
|
uint m_rotationValue;
|
||||||
QTimer *m_longPressTimer = nullptr;
|
QTimer *m_longPressTimer = nullptr;
|
||||||
int m_longPressTime = 250;
|
int m_longPressTime = 500;
|
||||||
|
|
||||||
void showMatrix(const QByteArray &matrix, const int &seconds);
|
void showMatrix(const QByteArray &matrix, const int &seconds);
|
||||||
void printService(QLowEnergyService *service);
|
void printService(QLowEnergyService *service);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user