feat(cpn): add support for surface radios inc Radiomaster MT12 (#5381)
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef RADIOUIACTION_H
|
||||
#define RADIOUIACTION_H
|
||||
#pragma once
|
||||
|
||||
#include <QtCore>
|
||||
#include <QWidget>
|
||||
@@ -43,7 +42,7 @@ class RadioUiAction : public QObject
|
||||
* @param text Optional title for this action. The text and description are currently used in generated help text.
|
||||
* @param descript Optional longer description text for this action.
|
||||
*/
|
||||
RadioUiAction(int index = -1, int key = 0, const QString &text = "", const QString &descript = "", QWidget * parent = NULL):
|
||||
RadioUiAction(int index = -1, int key = 0, const QString &text = "", const QString &descript = "", QWidget * parent = nullptr):
|
||||
m_hwIndex(index),
|
||||
m_active(false),
|
||||
m_keys(QList<int>()),
|
||||
@@ -57,7 +56,7 @@ class RadioUiAction : public QObject
|
||||
* @param keys QList of Qt:Key codes to use as shortcuts.
|
||||
* [See above for other params.]
|
||||
*/
|
||||
RadioUiAction(int index, QList<int> keys, const QString &text = "", const QString &descript = "", QWidget * parent = NULL):
|
||||
RadioUiAction(int index, QList<int> keys, const QString &text = "", const QString &descript = "", QWidget * parent = nullptr):
|
||||
RadioUiAction(index, 0, text, descript, parent)
|
||||
{
|
||||
addKeys(keys);
|
||||
@@ -165,15 +164,3 @@ class RadioUiAction : public QObject
|
||||
void pushed(int index); // only emitted on user interaction && when 'active' is true
|
||||
void pushed();
|
||||
};
|
||||
|
||||
#endif // RADIOUIACTION_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user