Skip to content
Snippets Groups Projects
Commit 20c4081d authored by Capucine Berthet's avatar Capucine Berthet Committed by Sébastien Blin
Browse files

Ptt: set space as default key

Change-Id: I7944a40d622ee9092686ce32c99ce94c4be1cdb1
parent 48cfd8e2
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ extern const QString defaultDownloadPath;
X(IsDonationVisible, true) \
X(Donation2023EndDate, "2024-01-31 00:00") \
X(EnablePtt, false) \
X(pttKey, 36)
X(PttKeys, 32)
/*
* A class to expose settings keys in both c++ and QML.
* Note: this is using a non-constructable class instead of a
......
......@@ -13,7 +13,7 @@ class PTTListener : public QObject
public:
Q_INVOKABLE Qt::Key getCurrentKey()
{
int keyInt = settingsManager_->getValue(Settings::Key::pttKey).toInt();
int keyInt = settingsManager_->getValue(Settings::Key::PttKeys).toInt();
Qt::Key key = static_cast<Qt::Key>(keyInt);
return key;
}
......@@ -25,7 +25,7 @@ public:
Q_INVOKABLE void setPttKey(Qt::Key key)
{
settingsManager_->setValue(Settings::Key::pttKey, key);
settingsManager_->setValue(Settings::Key::PttKeys, key);
}
Q_INVOKABLE bool getPttState()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment