PowerMaster/dataPanel/dpBaseChart.h

31 lines
652 B
C
Raw Normal View History

#ifndef DPBASECHART_H
#define DPBASECHART_H
#include "dpBaseWidget.h"
class dpBaseChart : public dpBaseWidget
{
Q_OBJECT
public:
dpBaseChart(QWidget *parent = nullptr);
~dpBaseChart();
void setTimeRange(TimeUnit) {}
void setDateTime(const QDateTime&) {}
void viewHistoricalData(const QDateTime&) {}
protected:
struct ChartStyle
{
QColor bgColor; //背景颜色
QColor axisColor; //坐标轴颜色
QColor tickColor; //刻度颜色
QColor tickLabelColor; //刻度label颜色
QFont tickLabelFont; //刻度label字体
QPen gridPen; //网格线颜色
};
};
#endif