Source
98
98
m_scale = scale;
99
99
if ( m_parent != NULL ){
100
100
if(m_scale == LOG10){
101
101
#if QWT_VERSION >= 0x060000
102
102
m_parent->setAxisScaleEngine(m_axis, new QwtLogScaleEngine());
103
103
#else
104
104
m_parent->setAxisScaleEngine(m_axis, new QwtLog10ScaleEngine());
105
105
#endif
106
106
}
107
107
else {
108
+
#if QWT_VERSION >= 0x060000
108
109
m_parent->setAxisScaleEngine(m_axis, new QwtLinearScaleEngine(base));
110
+
#else
111
+
base = 10;
112
+
m_parent->setAxisScaleEngine(m_axis, new QwtLinearScaleEngine());
113
+
#endif
109
114
}
110
115
if(m_parent->autoReplot())
111
116
m_parent->replot();
112
117
}
113
118
}
114
119
}
115
120
116
121
void QPScaleDraw::draw(QPainter* painter, const QPalette& palette) const {
117
122
QwtScaleDraw::draw( painter, palette );
118
123
}