mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 14:55:43 +02:00
Ptt: set space as default key
Change-Id: I7944a40d622ee9092686ce32c99ce94c4be1cdb1
This commit is contained in:
parent
48cfd8e29f
commit
20c4081d88
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ extern const QString defaultDownloadPath;
|
||||||
X(IsDonationVisible, true) \
|
X(IsDonationVisible, true) \
|
||||||
X(Donation2023EndDate, "2024-01-31 00:00") \
|
X(Donation2023EndDate, "2024-01-31 00:00") \
|
||||||
X(EnablePtt, false) \
|
X(EnablePtt, false) \
|
||||||
X(pttKey, 36)
|
X(PttKeys, 32)
|
||||||
/*
|
/*
|
||||||
* A class to expose settings keys in both c++ and QML.
|
* A class to expose settings keys in both c++ and QML.
|
||||||
* Note: this is using a non-constructable class instead of a
|
* Note: this is using a non-constructable class instead of a
|
||||||
|
|
|
@ -13,7 +13,7 @@ class PTTListener : public QObject
|
||||||
public:
|
public:
|
||||||
Q_INVOKABLE Qt::Key getCurrentKey()
|
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);
|
Qt::Key key = static_cast<Qt::Key>(keyInt);
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ public:
|
||||||
|
|
||||||
Q_INVOKABLE void setPttKey(Qt::Key key)
|
Q_INVOKABLE void setPttKey(Qt::Key key)
|
||||||
{
|
{
|
||||||
settingsManager_->setValue(Settings::Key::pttKey, key);
|
settingsManager_->setValue(Settings::Key::PttKeys, key);
|
||||||
}
|
}
|
||||||
Q_INVOKABLE bool getPttState()
|
Q_INVOKABLE bool getPttState()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue