27 lines
433 B
C++
27 lines
433 B
C++
#ifndef COMMANDBUTTON_H
|
|
#define COMMANDBUTTON_H
|
|
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
#include "QPushButton"
|
|
#include "QDebug"
|
|
#include "QEvent"
|
|
|
|
class CommandButton : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CommandButton(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
|
|
void keyPressEvent(QKeyEvent* event);
|
|
void keyReleaseEvent(QKeyEvent* event);
|
|
|
|
|
|
signals:
|
|
|
|
};
|
|
|
|
#endif // COMMANDBUTTON_H
|