Files
VX5_KRO_GearPump/DigitalInput.h
T

44 lines
823 B
C++

#ifndef DIGITALINPUT_H
#define DIGITALINPUT_H
#include <QWidget>
#include <QSpinBox>
#include <QDoubleSpinBox>
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;
QDoubleSpinBox* m_currDoubleSpinBox = nullptr;
};
#endif // DIGITALINPUT_H