Skip to content
Permalink
Browse files

Fix load/save of raster renderer transparency, ticket #5853

  • Loading branch information
mhugent committed Jun 24, 2012
1 parent fd9a93c commit 8ff8da32aece7720b63bdeddb9b5c97a0ed7add5
Showing with 0 additions and 13 deletions.
  1. +0 −10 src/core/raster/qgsrasterlayer.cpp
  2. +0 −3 src/core/raster/qgsrasterlayer.h
@@ -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 );
}
}
@@ -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 );

0 comments on commit 8ff8da3

Please sign in to comment.
You can’t perform that action at this time.