Skip to content

Commit

Permalink
Fix load/save of raster renderer transparency, ticket #5853
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 24, 2012
1 parent fd9a93c commit 8ff8da3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -2651,13 +2651,3 @@ bool QgsRasterLayer::readColorTable( int theBandNumber, QList<QgsColorRampShader
*theList = myColorRampItemList;
return true;
}


void QgsRasterLayer::setTransparency( unsigned int theInt )
{
mTransparencyLevel = theInt;
if ( mRenderer )
{
mRenderer->setOpacity( mTransparencyLevel / 255.0 );
}
}
3 changes: 0 additions & 3 deletions src/core/raster/qgsrasterlayer.h
Expand Up @@ -645,9 +645,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
/** \brief receive progress signal from provider */
void onProgress( int, double, QString );

/** \brief Overload the setTransparency method from QgsMapLayer */
void setTransparency( unsigned int theInt );

signals:
/** \brief Signal for notifying listeners of long running processes */
void progressUpdate( int theValue );
Expand Down

0 comments on commit 8ff8da3

Please sign in to comment.