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.
29 lines
615 B
C++
29 lines
615 B
C++
#pragma once
|
|
|
|
#include "iGridRowItem.h"
|
|
|
|
// 对于有单位的生成,目前默认所有的均有单位,为了对齐
|
|
class X_GUI_GRIDPTY_EXPORT iGridRowItemUnt : public iGridRowItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit iGridRowItemUnt(iGridRowItem* pParent = NULL);
|
|
~iGridRowItemUnt();
|
|
|
|
// 范围
|
|
virtual void setBounds(QRectF& rt);//全局
|
|
virtual QRectF getRightBounds_Main();//右
|
|
virtual QRectF getRightBounds_Unt();
|
|
|
|
protected:
|
|
|
|
// 绘图
|
|
virtual void paint(QPainter* pPainter);
|
|
void _paintItemUnit(QPainter* pPainter, QString s);
|
|
|
|
protected:
|
|
|
|
QString m_sUnit;
|
|
};
|