@@ -2732,7 +2732,7 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
2732
2732
2733
2733
emit setStatus (QString (" Calculating stats for " )+name ());
2734
2734
// reset the main app progress bar
2735
- emit setProgress (0 ,0 );
2735
+ emit drawingProgress (0 ,0 );
2736
2736
2737
2737
// let the user know we're going to possibly be taking a while
2738
2738
QApplication::setOverrideCursor (QCursor (Qt::WaitCursor));
@@ -2802,7 +2802,7 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
2802
2802
2803
2803
for ( int iYBlock = 0 ; iYBlock < myNYBlocks; iYBlock++ )
2804
2804
{
2805
- emit setProgress ( iYBlock, myNYBlocks * 2 );
2805
+ emit drawingProgress ( iYBlock, myNYBlocks * 2 );
2806
2806
2807
2807
for ( int iXBlock = 0 ; iXBlock < myNXBlocks; iXBlock++ )
2808
2808
{
@@ -2874,7 +2874,7 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
2874
2874
// for the second pass we will get the sum of the squares / mean
2875
2875
for ( int iYBlock = 0 ; iYBlock < myNYBlocks; iYBlock++ )
2876
2876
{
2877
- emit setProgress ( iYBlock+myNYBlocks, myNYBlocks * 2 );
2877
+ emit drawingProgress ( iYBlock+myNYBlocks, myNYBlocks * 2 );
2878
2878
2879
2879
for ( int iXBlock = 0 ; iXBlock < myNXBlocks; iXBlock++ )
2880
2880
{
@@ -2960,7 +2960,7 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
2960
2960
QgsDebugMsg (" adding stats to stats collection at position " + QString::number (theBandNoInt - 1 ));
2961
2961
// add this band to the class stats map
2962
2962
rasterStatsVector[theBandNoInt - 1 ] = myRasterBandStats;
2963
- emit setProgress (rasterYDimInt, rasterYDimInt); // reset progress
2963
+ emit drawingProgress (rasterYDimInt, rasterYDimInt); // reset progress
2964
2964
QApplication::restoreOverrideCursor (); // restore the cursor
2965
2965
QgsDebugMsg (" Stats collection completed returning" );
2966
2966
return myRasterBandStats;
@@ -3687,7 +3687,7 @@ void QgsRasterLayer::initContextMenu_(QgisApp * theApp)
3687
3687
void QgsRasterLayer::updateProgress (int theProgress, int theMax)
3688
3688
{
3689
3689
// simply propogate it on!
3690
- emit setProgress (theProgress,theMax);
3690
+ emit drawingProgress (theProgress,theMax);
3691
3691
}
3692
3692
3693
3693
void QgsRasterLayer::popupTransparencySliderMoved (int theInt)
@@ -4125,7 +4125,7 @@ QString QgsRasterLayer::getMetadata()
4125
4125
void QgsRasterLayer::buildPyramids (RasterPyramidList const & theRasterPyramidList,
4126
4126
QString const & theResamplingMethod)
4127
4127
{
4128
- emit setProgress (0 ,0 );
4128
+ emit drawingProgress (0 ,0 );
4129
4129
// first test if the file is writeable
4130
4130
QFileInfo myQFile (dataSource);
4131
4131
@@ -4151,7 +4151,7 @@ void QgsRasterLayer::buildPyramids(RasterPyramidList const & theRasterPyramidLis
4151
4151
4152
4152
// if the dataset couldn't be opened in read / write mode, tell the user
4153
4153
if (!gdalDataset) {
4154
- emit setProgress (0 ,0 );
4154
+ emit drawingProgress (0 ,0 );
4155
4155
QApplication::restoreOverrideCursor ();
4156
4156
QMessageBox myMessageBox ( tr (" Building pyramids failed." ),
4157
4157
tr (" The file was not writeable. Some formats can not be written to, only read. You can also try to check the permissions and then try again." ),
@@ -4185,7 +4185,7 @@ void QgsRasterLayer::buildPyramids(RasterPyramidList const & theRasterPyramidLis
4185
4185
if ((*myRasterPyramidIterator).existsFlag )
4186
4186
{
4187
4187
QgsDebugMsg (" Building....." );
4188
- emit setProgress (myCountInt,myTotalInt);
4188
+ emit drawingProgress (myCountInt,myTotalInt);
4189
4189
int myOverviewLevelsIntArray[1 ] = {(*myRasterPyramidIterator).levelInt };
4190
4190
/* From : http://remotesensing.org/gdal/classGDALDataset.html#a23
4191
4191
* pszResampling : one of "NEAREST", "AVERAGE" or "MODE" controlling the downsampling method applied.
@@ -4231,7 +4231,7 @@ void QgsRasterLayer::buildPyramids(RasterPyramidList const & theRasterPyramidLis
4231
4231
myMessageBox.exec ();
4232
4232
delete gdalDataset;
4233
4233
gdalDataset = (GDALDataset *) GDALOpen (QFile::encodeName (dataSource).constData (), GA_ReadOnly);
4234
- emit setProgress (0 ,0 );
4234
+ emit drawingProgress (0 ,0 );
4235
4235
return ;
4236
4236
}
4237
4237
myCountInt++;
@@ -4248,7 +4248,7 @@ void QgsRasterLayer::buildPyramids(RasterPyramidList const & theRasterPyramidLis
4248
4248
// close the gdal dataset and reopen it in read only mode
4249
4249
delete gdalDataset;
4250
4250
gdalDataset = (GDALDataset *) GDALOpen (QFile::encodeName (dataSource).constData (), GA_ReadOnly);
4251
- emit setProgress (0 ,0 );
4251
+ emit drawingProgress (0 ,0 );
4252
4252
QApplication::restoreOverrideCursor ();
4253
4253
}
4254
4254
0 commit comments