Keystrokes can now be edited per button/knob.
This commit is contained in:
@@ -10,6 +10,8 @@ class QDialButton : public QRatioButton
|
||||
|
||||
public:
|
||||
QDialButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
|
||||
|
||||
virtual Type type() const override { return QRatioButton::Type::DIAL; }
|
||||
};
|
||||
|
||||
#endif // QDIALBUTTON_H
|
||||
|
||||
@@ -10,6 +10,8 @@ class QMacroButton : public QRatioButton
|
||||
|
||||
public:
|
||||
QMacroButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
|
||||
|
||||
virtual Type type() const override { return QRatioButton::Type::PUSH_BUTTON; }
|
||||
};
|
||||
|
||||
#endif // QMACROBUTTON_H
|
||||
|
||||
@@ -8,10 +8,18 @@ class QRatioButton : public QPushButton
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum class Type : quint8 {
|
||||
INVALID,
|
||||
PUSH_BUTTON,
|
||||
DIAL
|
||||
};
|
||||
|
||||
QRatioButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
|
||||
|
||||
virtual int heightForWidth(int w) const;
|
||||
|
||||
virtual Type type() const { return Type::INVALID; }
|
||||
|
||||
private:
|
||||
void onButtonPressSignal();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user