@@ -127,24 +127,6 @@ typedef QList < QPair< QString, QColor > > QgsLegendColorList;
127
127
* }
128
128
* \endcode
129
129
*
130
- * You can combine layer type detection with the setDrawingStyle method to override the default drawing style assigned
131
- * when a layer is loaded:
132
- *
133
- * \code
134
- * if (rasterLayer->rasterType()==QgsRasterLayer::Multiband)
135
- * {
136
- * myRasterLayer->setDrawingStyle(QgsRasterLayer::MultiBandSingleBandPseudoColor);
137
- * }
138
- * else if (rasterLayer->rasterType()==QgsRasterLayer::Palette)
139
- * {
140
- * myRasterLayer->setDrawingStyle(QgsRasterLayer::PalettedSingleBandPseudoColor);
141
- * }
142
- * else // QgsRasterLayer::GrayOrUndefined
143
- * {
144
- * myRasterLayer->setDrawingStyle(QgsRasterLayer::SingleBandPseudoColor);
145
- * }
146
- * \endcode
147
- *
148
130
* Raster layers can also have an arbitrary level of transparency defined, and have their
149
131
* color palettes inverted using the setTransparency and setInvertHistogram methods.
150
132
*
@@ -328,8 +310,10 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
328
310
/* * \brief Set default contrast enhancement */
329
311
void setDefaultContrastEnhancement ();
330
312
331
- /* * \brief Overloaded version of the above function for convenience when restoring from xml */
332
- void setDrawingStyle ( const QString & theDrawingStyleQString );
313
+ /* * \brief Overloaded version of the above function for convenience when restoring from xml
314
+ * @note Deprecated since QGIS 2.10. Use setRendererForDrawingStyle() or directly setRenderer()
315
+ */
316
+ Q_DECL_DEPRECATED void setDrawingStyle ( const QString & theDrawingStyleQString );
333
317
334
318
/* * \brief [ data provider interface ] A wrapper function to emit a progress update signal */
335
319
void showProgress ( int theValue );
@@ -408,8 +392,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
408
392
/* * Pointer to data provider */
409
393
QgsRasterDataProvider* mDataProvider ;
410
394
411
- // DrawingStyle mDrawingStyle;
412
-
413
395
/* * [ data provider interface ] Timestamp, the last modified time of the data source when the layer was created */
414
396
QDateTime mLastModified ;
415
397
0 commit comments