Files
GUI/src/InputObject.h

35 lines
592 B
C
Raw Normal View History

#ifndef INPUTOBJECT_H
#define INPUTOBJECT_H
2021-10-15 11:52:23 +08:00
#include <QWidget>
class QLineEdit;
class QDateEdit;
class QTextEdit;
2021-10-21 10:03:02 +08:00
//#define CUTE_STYLE
2021-10-15 11:52:23 +08:00
namespace Ui {
class InputObject;
2021-10-15 11:52:23 +08:00
}
class InputObject : public QWidget
{
Q_OBJECT
2021-10-15 11:52:23 +08:00
public:
explicit InputObject(QWidget *parent = nullptr);
~InputObject();
2021-10-15 11:52:23 +08:00
bool eventFilter(QObject *obj, QEvent *event);
void ShowPanel();
2021-10-15 11:52:23 +08:00
private:
Ui::InputObject *ui;
2021-10-15 11:52:23 +08:00
void initUi();
// void ShowPanel();
2021-10-15 11:52:23 +08:00
void HidePanel();
QDateEdit *curDateEdit = nullptr;
QLineEdit* curLine = nullptr;
QTextEdit* curText = nullptr;
};
#endif // INPUTOBJECT_H