Skip to content

Commit

Permalink
Remove deprecated method from getDataValues()
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 13, 2016
1 parent a921c19 commit 7c1fc8e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
6 changes: 6 additions & 0 deletions doc/api_break.dox
Expand Up @@ -619,6 +619,12 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
<li>Some internal methods which were previously public or protected were made private.</li>
</ul>

\subsection qgis_api_break_3_0_QgsGraduatedSymbolRenderer QgsGraduatedSymbolRenderer

<ul>
<li>getDataValues() has been removed - use QgsVectorLayer::getDoubleValues() instead</li>
</ul>

\subsection qgis_api_break_3_0_QgsGraphBuilderInterface QgsGraphBuilderInterface

<ul>
Expand Down
6 changes: 0 additions & 6 deletions python/core/symbology-ng/qgsgraduatedsymbolrenderer.sip
Expand Up @@ -183,12 +183,6 @@ class QgsGraduatedSymbolRenderer : QgsFeatureRenderer
//! @note Added in 2.6
void updateClasses( QgsVectorLayer *vlayer, Mode mode, int nclasses );

//! Evaluates the data expression and returns the list of values from the layer
//! @param vlayer The layer for which to evaluate the expression
//! @note Added in 2.6
//! @deprecated use QgsVectorLayer::getDoubleValues instead
QList<double> getDataValues( QgsVectorLayer *vlayer ) /Deprecated/;

//! Return the label format used to generate default classification labels
//! @note Added in 2.6
const QgsRendererRangeLabelFormat &labelFormat() const;
Expand Down
6 changes: 0 additions & 6 deletions src/core/symbology-ng/qgsgraduatedsymbolrenderer.cpp
Expand Up @@ -858,12 +858,6 @@ QgsGraduatedSymbolRenderer* QgsGraduatedSymbolRenderer::createRenderer(
return r;
}

QList<double> QgsGraduatedSymbolRenderer::getDataValues( QgsVectorLayer *vlayer )
{
bool ok;
return vlayer->getDoubleValues( mAttrName, ok );
}

void QgsGraduatedSymbolRenderer::updateClasses( QgsVectorLayer *vlayer, Mode mode, int nclasses )
{
if ( mAttrName.isEmpty() )
Expand Down
6 changes: 0 additions & 6 deletions src/core/symbology-ng/qgsgraduatedsymbolrenderer.h
Expand Up @@ -227,12 +227,6 @@ class CORE_EXPORT QgsGraduatedSymbolRenderer : public QgsFeatureRenderer
//! @note Added in 2.6
void updateClasses( QgsVectorLayer *vlayer, Mode mode, int nclasses );

//! Evaluates the data expression and returns the list of values from the layer
//! @param vlayer The layer for which to evaluate the expression
//! @note Added in 2.6
//! @deprecated use QgsVectorLayer::getDoubleValues instead
Q_DECL_DEPRECATED QList<double> getDataValues( QgsVectorLayer *vlayer );

//! Return the label format used to generate default classification labels
//! @note Added in 2.6
const QgsRendererRangeLabelFormat &labelFormat() const { return mLabelFormat; }
Expand Down

0 comments on commit 7c1fc8e

Please sign in to comment.