first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#ifndef DIGITALINPUT_H
|
||||
#define DIGITALINPUT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QSpinBox>
|
||||
|
||||
class MyInputMethod;
|
||||
namespace Ui {
|
||||
class DigitalInput;
|
||||
}
|
||||
|
||||
class DigitalInput : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DigitalInput(MyInputMethod *myInputMethod,QWidget *parent = 0);
|
||||
~DigitalInput();
|
||||
|
||||
private slots:
|
||||
void onCharPressed();
|
||||
void onKeyBackspacePressed();
|
||||
void onKeySelectAllPressed();
|
||||
void onKeyUpPressed();
|
||||
void onKeyDownPressed();
|
||||
|
||||
void onEnterPressed();
|
||||
void onClrPressed();
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* event) override;
|
||||
|
||||
private:
|
||||
Ui::DigitalInput *ui;
|
||||
|
||||
MyInputMethod *myInputMethod;
|
||||
QSpinBox* m_currSpinBox = nullptr;
|
||||
};
|
||||
|
||||
#endif // DIGITALINPUT_H
|
||||
Reference in New Issue
Block a user