You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
639 B
C++
25 lines
639 B
C++
#ifndef NMGUICOMPONENTLINEEDIT_H
|
|
#define NMGUICOMPONENTLINEEDIT_H
|
|
|
|
#include <QWidget>
|
|
#include <QVariant>
|
|
#include "nmGUIDefine.h"
|
|
#include "nmGUI_global.h"
|
|
#include "nmGUIComponentBase.h"
|
|
|
|
class NM_GUI_EXPORT nmGUIComponentLineEdit : public nmGUIComponentBase {
|
|
Q_OBJECT
|
|
public:
|
|
explicit nmGUIComponentLineEdit(nmDataAttribute* pOriginValue,
|
|
bool enable = true, QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void init() override;
|
|
|
|
public slots:
|
|
/// 外部调用来改变显示值(以 baseUnit 为单位传进来)
|
|
void setDisplayValue(double v);
|
|
};
|
|
|
|
#endif // NMGUICOMPONENTLINEEDIT_H
|