Files
VX5_KRO_GearPump/DigitalInput.h
T
2026-07-16 08:28:55 +08:00

42 lines
749 B
C++

#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;
void hideEvent(QHideEvent* event) override;
private:
Ui::DigitalInput *ui;
MyInputMethod *myInputMethod;
QSpinBox* m_currSpinBox = nullptr;
};
#endif // DIGITALINPUT_H