qchartaxis.cpp
81 lines
| 1.3 KiB
| text/x-c
|
CppLexer
/ src / qchartaxis.cpp
Michal Klocek
|
r72 | #include "qchartaxis.h" | ||
Michal Klocek
|
r85 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
Michal Klocek
|
r176 | QChartAxis::QChartAxis(): | ||
Michal Klocek
|
r85 | m_axisVisible(true), | ||
Michal Klocek
|
r176 | m_gridVisible(true), | ||
Michal Klocek
|
r85 | m_labelsVisible(true), | ||
Michal Klocek
|
r176 | m_shadesVisible(true) | ||
Michal Klocek
|
r72 | { | ||
// TODO Auto-generated constructor stub | ||||
} | ||||
QChartAxis::~QChartAxis() | ||||
{ | ||||
// TODO Auto-generated destructor stub | ||||
} | ||||
Michal Klocek
|
r140 | void QChartAxis::setAxisPen(const QPen& pen) | ||
{ | ||||
Michal Klocek
|
r176 | m_axisPen=pen; | ||
Michal Klocek
|
r140 | } | ||
Michal Klocek
|
r85 | void QChartAxis::setAxisVisible(bool visible) | ||
{ | ||||
m_axisVisible=visible; | ||||
} | ||||
void QChartAxis::setGridVisible(bool visible) | ||||
{ | ||||
Michal Klocek
|
r176 | m_gridVisible=visible; | ||
} | ||||
void QChartAxis::setGridPen(const QPen& pen) | ||||
{ | ||||
m_gridPen=pen; | ||||
Michal Klocek
|
r85 | } | ||
void QChartAxis::setLabelsVisible(bool visible) | ||||
{ | ||||
m_labelsVisible=visible; | ||||
} | ||||
Michal Klocek
|
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
|
r85 | { | ||
Michal Klocek
|
r176 | m_shadesBrush=brush; | ||
Michal Klocek
|
r85 | } | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||