logplus/logPlus/formtableitem.h

53 lines
1.1 KiB
C++

#ifndef FORMTABLEITEM_H
#define FORMTABLEITEM_H
#include <QWidget>
//#include "PropertyWidget.h"
#pragma execution_character_set("utf-8")
namespace Ui {
class FormTableItem;
}
class FormTableItem : public QWidget
{
Q_OBJECT
public:
explicit FormTableItem(QWidget *parent = nullptr);
~FormTableItem();
private:
Ui::FormTableItem *ui;
protected:
void paintEvent(QPaintEvent *event);
public:
QPixmap m_pixmap;
QFont m_txtFont; // 字体
QColor m_txtColor; //文字颜色
QColor m_backColor = QColor(255, 255, 255, 255); //背景颜色
bool m_bVerticaDrawing = false; // 垂向绘制
QString m_strShowTxt = "";
QString m_strImg = "";
//图头, 图例宽高
double m_colWidth_Img = 1;
double m_rowHeight_Img = 1;
//公式
QString m_strFormulaText = "";
// 公式操作符类型
int m_iFormulaType = 0;
//图头, 行高、列宽
double m_colWidth = 1;
double m_rowHeight = 1;
QString m_strSlfName = "";
QString m_strWellName = "";
};
#endif // FORMTABLEITEM_H