##// END OF EJS Templates
Fix a major memory leak
Fix a major memory leak

File last commit:

r188:81d9e3777fdd
r204:a4ba86638d8d
Show More
qchartaxis.cpp
86 lines | 1.4 KiB | text/x-c | CppLexer
Michal Klocek
Adds qchartaxis stub
r72 #include "qchartaxis.h"
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Adds more axis handling...
r176 QChartAxis::QChartAxis():
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 m_axisVisible(true),
Michal Klocek
Adds more axis handling...
r176 m_gridVisible(true),
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 m_labelsVisible(true),
Michal Klocek
Adds opacity to shades
r188 m_shadesVisible(true),
m_shadesOpacity(1.0)
Michal Klocek
Adds qchartaxis stub
r72 {
// TODO Auto-generated constructor stub
}
QChartAxis::~QChartAxis()
{
// TODO Auto-generated destructor stub
}
Michal Klocek
Adds refactored axis to presenter
r140 void QChartAxis::setAxisPen(const QPen& pen)
{
Michal Klocek
Adds more axis handling...
r176 m_axisPen=pen;
Michal Klocek
Adds refactored axis to presenter
r140 }
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void QChartAxis::setAxisVisible(bool visible)
{
m_axisVisible=visible;
}
void QChartAxis::setGridVisible(bool visible)
{
Michal Klocek
Adds more axis handling...
r176 m_gridVisible=visible;
}
void QChartAxis::setGridPen(const QPen& pen)
{
m_gridPen=pen;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 }
void QChartAxis::setLabelsVisible(bool visible)
{
m_labelsVisible=visible;
}
Michal Klocek
Adds more axis handling...
r176 void QChartAxis::setLabelsPen(const QPen& pen)
{
m_labelsPen=pen;
}
void QChartAxis::setLabelsBrush(const QBrush& brush)
{
m_labelsBrush=brush;
}
void QChartAxis::setLabelsFont(const QFont& font)
{
m_labelsFont=font;
}
void QChartAxis::setLabelsOrientation(LabelsOrientation orientation)
{
m_labelsOrientation=orientation;
}
void QChartAxis::setShadesVisible(bool visible)
{
m_shadesVisible=visible;
}
void QChartAxis::setShadesPen(const QPen& pen)
{
m_shadesPen=pen;
}
void QChartAxis::setShadesBrush(const QBrush& brush)
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 {
Michal Klocek
Adds more axis handling...
r176 m_shadesBrush=brush;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 }
Michal Klocek
Adds opacity to shades
r188 void QChartAxis::setShadesOpacity(qreal opacity)
{
m_shadesOpacity=opacity;
}
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
QTCOMMERCIALCHART_END_NAMESPACE