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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iGridRowItemUnt.h"
|
|
|
|
|
|
|
|
|
|
// 时间+日期
|
|
|
|
|
class X_GUI_GRIDPTY_EXPORT iGridRowItemDateTime : \
|
|
|
|
|
public iGridRowItemUnt
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit iGridRowItemDateTime(iGridRowItem* pParent = NULL);
|
|
|
|
|
~iGridRowItemDateTime();
|
|
|
|
|
|
|
|
|
|
// 初始化
|
|
|
|
|
virtual void setParameter(iParameter* p);
|
|
|
|
|
virtual void initEditor();
|
|
|
|
|
virtual void configEditor();
|
|
|
|
|
virtual QString getEditorCss(bool bValid);
|
|
|
|
|
|
|
|
|
|
// 数据范围
|
|
|
|
|
QString getParaScales();
|
|
|
|
|
|
|
|
|
|
// 该基类默认按float进行实现
|
|
|
|
|
virtual bool setCurValue(QVariant o);//现值
|
|
|
|
|
virtual QVariant getCurValue();
|
|
|
|
|
virtual QString getShowValue();
|
|
|
|
|
|
|
|
|
|
// 范围
|
|
|
|
|
virtual void setBounds(QRectF& rt);
|
|
|
|
|
virtual QRectF getRightBounds_Main();//右
|
|
|
|
|
|
|
|
|
|
// 其它
|
|
|
|
|
virtual void setActive(bool b);
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
void slotDateTimeChanged(QDateTime dt);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// 绘图
|
|
|
|
|
virtual void paint(QPainter* pPainter);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
QTimeEdit* m_pTime;
|
|
|
|
|
|
|
|
|
|
};
|