@@ -780,7 +780,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, i
780
780
781
781
// draw other res tiles if preview
782
782
QPainter p ( image );
783
- if ( feedback && feedback->preview_only && missing.count () > 0 )
783
+ if ( feedback && feedback->isPreviewOnly () && missing.count () > 0 )
784
784
{
785
785
// some tiles are still missing, so let's see if we have any cached tiles
786
786
// from lower or higher resolution available to give the user a bit of context
@@ -825,22 +825,22 @@ QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, i
825
825
p.setRenderHint ( QPainter::SmoothPixmapTransform, true );
826
826
p.drawImage ( ti.rect , ti.img );
827
827
828
- if ( feedback && feedback->preview_only )
828
+ if ( feedback && feedback->isPreviewOnly () )
829
829
_drawDebugRect ( p, ti.rect , Qt::green );
830
830
}
831
831
p.end ();
832
832
833
833
int t2 = t.elapsed () - t1;
834
834
835
- if ( feedback && feedback->preview_only )
835
+ if ( feedback && feedback->isPreviewOnly () )
836
836
{
837
837
qDebug ( " PREVIEW - CACHED: %d / MISSING: %d" , tileImages.count (), requests.count () - tileImages.count () );
838
838
qDebug ( " PREVIEW - TIME: this res %d ms | other res %d ms | TOTAL %d ms" , t0 + t2, t1, t0 + t1 + t2 );
839
839
}
840
840
else if ( !requestsFinal.isEmpty () )
841
841
{
842
842
// let the feedback object know about the tiles we have already
843
- if ( feedback && feedback->render_partial_output )
843
+ if ( feedback && feedback->renderPartialOutput () )
844
844
feedback->onNewData ();
845
845
846
846
// order tile requests according to the distance from view center
@@ -3908,7 +3908,7 @@ void QgsWmsTiledImageDownloadHandler::tileReplyFinished()
3908
3908
}
3909
3909
else
3910
3910
{
3911
- if ( !( mFeedback && mFeedback ->preview_only ) )
3911
+ if ( !( mFeedback && mFeedback ->isPreviewOnly () ) )
3912
3912
{
3913
3913
// report any errors except for the one we have caused by cancelling the request
3914
3914
if ( reply->error () != QNetworkReply::OperationCanceledError )
0 commit comments