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.
AppFlow/CFDStruct/CUIProperty/CUIComponentILineEdit.h

46 lines
1.1 KiB
C

#ifndef CUICOMPONENTILINEEDIT_H
#define CUICOMPONENTILINEEDIT_H
3 weeks ago
#include <QLineEdit>
#include <QWidget>
#include "CUIComponentBase.h"
#include "CUIComponentBaseWidget.h"
#include "CUIPropertyAPI.h"
3 weeks ago
class CUIConfig;
class QLabel;
class QHBoxLayout;
class CUIPropertyWidget;
class CUIPropertyAPI CUIComponentLineEdit : public CUIComponentBaseWidget,
public CUIComponentBase {
Q_OBJECT
public:
explicit CUIComponentLineEdit(CUIConfig* config,
QVector<CUIPropertyWidget*>& subCUI,
QWidget* parent = nullptr);
qint32 getLabelWidth();
void setLabelWidth(qint32 width);
private:
virtual void initUI(QVector<CUIPropertyWidget*>& subCUI);
// 鐠佸墽鐤嗛弽鐓庣础閺嶏繝鐛欓崳
void setValidator();
// 鐠佸墽鐤嗘潏鎾冲弳閹绘劗銇
void setInputTips();
void showRangeError();
QLabel* m_label;
QLineEdit* m_lineEdit;
QHBoxLayout* m_layout;
// QString lastEdited;
signals:
private slots:
void onTextChanged(const QString& text);
3 weeks ago
};
#endif // CUICOMPONENTILINEEDIT_H