File tree 5 files changed +10
-7
lines changed
5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ class QgsMapLayer : public QObject
304
304
305
305
public slots:
306
306
/* * \brief Mutator for transparency level. Should be between 0 and 255 */
307
- virtual void setTransparency (int )=0; //
307
+ virtual void setTransparency (unsigned int )=0;
308
308
// ! event handler for when a coordinate transofrm fails due to bad vertex error
309
309
virtual void invalidTransformInput ();
310
310
Original file line number Diff line number Diff line change @@ -3448,12 +3448,15 @@ inline void QgsVectorLayer::transformPoints(
3448
3448
// position on map canvas
3449
3449
mtp->transformInPlace (x, y);
3450
3450
}
3451
+
3451
3452
unsigned int QgsVectorLayer::getTransparency ()
3452
3453
{
3453
3454
return transparencyLevelInt;
3454
3455
}
3456
+
3455
3457
// should be between 0 and 255
3456
- void QgsVectorLayer::setTransparency (int theInt)
3458
+ void QgsVectorLayer::setTransparency (unsigned int theInt)
3457
3459
{
3458
3460
transparencyLevelInt=theInt;
3459
- } // QgsRasterLayer::setTransparency(int theInt)
3461
+ } // QgsRasterLayer::setTransparency(unsigned int theInt)
3462
+
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ const QString displayField() const { return fieldIndex; }
172
172
public slots:
173
173
174
174
/* * \brief Mutator for transparency level. Should be between 0 and 255 */
175
- void setTransparency (int ); //
175
+ void setTransparency (unsigned int );
176
176
177
177
void inOverview ( bool );
178
178
Original file line number Diff line number Diff line change @@ -3822,7 +3822,7 @@ void QgsRasterLayer::popupTransparencySliderMoved(int theInt)
3822
3822
3823
3823
3824
3824
// should be between 0 and 255
3825
- void QgsRasterLayer::setTransparency (int theInt)
3825
+ void QgsRasterLayer::setTransparency (unsigned int theInt)
3826
3826
{
3827
3827
#ifdef QGISDEBUG
3828
3828
std::cout << " Set transparency called with : " << theInt << std::endl;
@@ -3834,7 +3834,7 @@ void QgsRasterLayer::setTransparency(int theInt)
3834
3834
mTransparencySlider ->setValue (255 -theInt);
3835
3835
}
3836
3836
transparencyLevelInt=theInt;
3837
- } // QgsRasterLayer::setTransparency(int theInt)
3837
+ } // QgsRasterLayer::setTransparency(unsigned int theInt)
3838
3838
3839
3839
3840
3840
Original file line number Diff line number Diff line change @@ -799,7 +799,7 @@ class QgsRasterLayer : public QgsMapLayer
799
799
800
800
public slots:
801
801
/* * \brief Mutator for transparency level. Should be between 0 and 255 */
802
- void setTransparency (int ); //
802
+ void setTransparency (unsigned int );
803
803
/* *
804
804
* Convert this raster to another format
805
805
*/
You can’t perform that action at this time.
0 commit comments