Extract all layout relevant data from the plot components */
| 170 | Extract all layout relevant data from the plot components |
| 171 | */ |
| 172 | LayoutData::LayoutData( const QwtPlot* plot ) |
| 173 | { |
| 174 | legendData.init( plot->legend() ); |
| 175 | labelData[ Title ].init( plot->titleLabel() ); |
| 176 | labelData[ Footer ].init( plot->footerLabel() ); |
| 177 | |
| 178 | for ( int axisPos = 0; axisPos < QwtAxis::AxisPositions; axisPos++ ) |
| 179 | { |
| 180 | { |
| 181 | const QwtAxisId axisId( axisPos ); |
| 182 | |
| 183 | ScaleData& scaleData = axisData( axisId ); |
| 184 | |
| 185 | if ( plot->isAxisVisible( axisId ) ) |
| 186 | { |
| 187 | const QwtScaleWidget* scaleWidget = plot->axisWidget( axisId ); |
| 188 | scaleData.init( scaleWidget ); |
| 189 | } |
| 190 | else |
| 191 | { |
| 192 | scaleData.reset(); |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | canvasData.init( plot->canvas() ); |
| 198 | } |
| 199 | |
| 200 | bool LayoutData::hasSymmetricYAxes() const |
| 201 | { |
nothing calls this directly
no test coverage detected