50 #include <QResizeEvent>
67 Graph::Graph(QWidget *parent)
128 void Graph::drawLabels(qint32 p_iContentWidth, qint32 p_iContentHeight)
130 QPainter painter(
this);
133 qint32 t_iLabelHeight = 100;
143 painter.drawText(QRect(0, 0, t_iLabelWidth, t_iLabelHeight), Qt::AlignCenter,
m_sTitle);
157 painter.drawText(QRect(0, 0, t_iLabelWidth, t_iLabelHeight), Qt::AlignCenter,
m_sXLabel);
167 painter.drawText(QRect(0, 0, t_iLabelWidth, t_iLabelHeight), Qt::AlignCenter,
m_sYLabel);
175 void Graph::resizeEvent(QResizeEvent* event)
179 QWidget::resizeEvent(event);
void setYLabel(const QString &p_sYLabel)
qint32 m_iBorderLeftRight
void setTitle(const QString &p_sTitle)
qint32 m_iBorderTopBottom
void setXLabel(const QString &p_sXLabel)