@@ -95,7 +95,7 void AxisItem::handleAxisUpdate(QChartAxis* axis) | |||||
95 | setGridOpacity(0); |
|
95 | setGridOpacity(0); | |
96 | } |
|
96 | } | |
97 |
|
97 | |||
98 |
if(axis-> |
|
98 | if(axis->labelsVisible()) | |
99 | { |
|
99 | { | |
100 | setLabelsOpacity(100); |
|
100 | setLabelsOpacity(100); | |
101 | } |
|
101 | } | |
@@ -103,7 +103,7 void AxisItem::handleAxisUpdate(QChartAxis* axis) | |||||
103 | setLabelsOpacity(0); |
|
103 | setLabelsOpacity(0); | |
104 | } |
|
104 | } | |
105 |
|
105 | |||
106 |
if(axis-> |
|
106 | if(axis->shadesVisible()) { | |
107 | setShadesOpacity(axis->shadesOpacity()); |
|
107 | setShadesOpacity(axis->shadesOpacity()); | |
108 | } |
|
108 | } | |
109 | else { |
|
109 | else { |
@@ -40,7 +40,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
40 | */ |
|
40 | */ | |
41 |
|
41 | |||
42 | /*! |
|
42 | /*! | |
43 |
\fn bool QChartAxis:: |
|
43 | \fn bool QChartAxis::labelsVisible() const | |
44 | \brief Returns if grid is visible |
|
44 | \brief Returns if grid is visible | |
45 | \sa setLabelsVisible() |
|
45 | \sa setLabelsVisible() | |
46 | */ |
|
46 | */ | |
@@ -70,7 +70,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
70 | */ |
|
70 | */ | |
71 |
|
71 | |||
72 | /*! |
|
72 | /*! | |
73 |
\fn bool QChartAxis:: |
|
73 | \fn bool QChartAxis::shadesVisible() const | |
74 | \brief Returns if shades are visible. |
|
74 | \brief Returns if shades are visible. | |
75 | \sa setShadesVisible() |
|
75 | \sa setShadesVisible() | |
76 | */ |
|
76 | */ |
@@ -28,7 +28,7 public: | |||||
28 | QPen gridPen() const {return m_gridPen;} |
|
28 | QPen gridPen() const {return m_gridPen;} | |
29 |
|
29 | |||
30 | //labels handling |
|
30 | //labels handling | |
31 |
bool |
|
31 | bool labelsVisible() const { return m_labelsVisible;}; | |
32 | void setLabelsVisible(bool visible); |
|
32 | void setLabelsVisible(bool visible); | |
33 | void setLabelsPen(const QPen& pen); |
|
33 | void setLabelsPen(const QPen& pen); | |
34 | QPen labelsPen() const { return m_labelsPen;} |
|
34 | QPen labelsPen() const { return m_labelsPen;} | |
@@ -40,7 +40,7 public: | |||||
40 | int labelsAngle() const { return m_labelsAngle;}; |
|
40 | int labelsAngle() const { return m_labelsAngle;}; | |
41 |
|
41 | |||
42 | //shades handling |
|
42 | //shades handling | |
43 |
bool |
|
43 | bool shadesVisible() const { return m_shadesVisible;}; | |
44 | void setShadesVisible(bool visible); |
|
44 | void setShadesVisible(bool visible); | |
45 | void setShadesPen(const QPen& pen); |
|
45 | void setShadesPen(const QPen& pen); | |
46 | QPen shadesPen() const { return m_shadesPen;} |
|
46 | QPen shadesPen() const { return m_shadesPen;} |
General Comments 0
You need to be logged in to leave comments.
Login now