Skip to content

Commit 8ff8da3

Browse files
committed
Fix load/save of raster renderer transparency, ticket #5853
1 parent fd9a93c commit 8ff8da3

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,13 +2651,3 @@ bool QgsRasterLayer::readColorTable( int theBandNumber, QList<QgsColorRampShader
26512651
*theList = myColorRampItemList;
26522652
return true;
26532653
}
2654-
2655-
2656-
void QgsRasterLayer::setTransparency( unsigned int theInt )
2657-
{
2658-
mTransparencyLevel = theInt;
2659-
if ( mRenderer )
2660-
{
2661-
mRenderer->setOpacity( mTransparencyLevel / 255.0 );
2662-
}
2663-
}

src/core/raster/qgsrasterlayer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
645645
/** \brief receive progress signal from provider */
646646
void onProgress( int, double, QString );
647647

648-
/** \brief Overload the setTransparency method from QgsMapLayer */
649-
void setTransparency( unsigned int theInt );
650-
651648
signals:
652649
/** \brief Signal for notifying listeners of long running processes */
653650
void progressUpdate( int theValue );

0 commit comments

Comments
 (0)