Add Keyboard.

This commit is contained in:
sunwen
2022-07-20 17:05:50 +08:00
parent 6ba8b72cfa
commit e51d0797c2
71 changed files with 16713 additions and 359 deletions

View File

@@ -0,0 +1,29 @@
#ifndef SWITCHINPUTMODEBUTTON_H
#define SWITCHINPUTMODEBUTTON_H
#include <QPushButton>
#include <QTimer>
class SwitchInputModeButton : public QPushButton
{
Q_OBJECT
public:
explicit SwitchInputModeButton(QWidget *aParent = nullptr);
~SwitchInputModeButton();
signals:
void repeatPress();
void singlePress();
private slots:
void handleButtonPressed();
void handleButtonReleased();
void prepareRepeatPress();
private:
bool mIsRepeat;
QTimer* mTimer;
};
#endif // SWITCHINPUTMODEBUTTON_H