Skip to content

Commit f4f76e4

Browse files
author
jef
committedMay 22, 2010
remove progress indication from symbology-ng rendering:
sometimes featureCount() is expensive and moveover only applies when the canvas covers the full layer extent, which is not always the case. git-svn-id: http://svn.osgeo.org/qgis/trunk@13548 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fbaf8cc commit f4f76e4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ void QgsVectorLayer::drawRendererV2( QgsRenderContext& rendererContext, bool lab
706706
mRendererV2->startRender( rendererContext, this );
707707

708708
#ifndef Q_WS_MAC
709-
int totalFeatures = pendingFeatureCount();
710709
int featureCount = 0;
711710
#endif //Q_WS_MAC
712711

@@ -724,12 +723,12 @@ void QgsVectorLayer::drawRendererV2( QgsRenderContext& rendererContext, bool lab
724723
if ( mUpdateThreshold > 0 && 0 == featureCount % mUpdateThreshold )
725724
{
726725
emit screenUpdateRequested();
727-
emit drawingProgress( featureCount, totalFeatures );
726+
// emit drawingProgress( featureCount, totalFeatures );
728727
qApp->processEvents();
729728
}
730729
else if ( featureCount % 1000 == 0 )
731730
{
732-
emit drawingProgress( featureCount, totalFeatures );
731+
// emit drawingProgress( featureCount, totalFeatures );
733732
qApp->processEvents();
734733
}
735734
#endif //Q_WS_MAC
@@ -970,7 +969,7 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
970969
mVertexMarkerOnlyForSelection = settings.value( "/qgis/digitizing/marker_only_for_selected", false ).toBool();
971970
}
972971

973-
int totalFeatures = pendingFeatureCount();
972+
// int totalFeatures = pendingFeatureCount();
974973
int featureCount = 0;
975974
QgsFeature fet;
976975
QgsAttributeList attributes = mRenderer->classificationAttributes();
@@ -1003,16 +1002,16 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
10031002
if ( mUpdateThreshold > 0 && 0 == featureCount % mUpdateThreshold )
10041003
{
10051004
emit screenUpdateRequested();
1006-
emit drawingProgress( featureCount, totalFeatures );
1005+
// emit drawingProgress( featureCount, totalFeatures );
10071006
qApp->processEvents();
10081007
}
10091008
else if ( featureCount % 1000 == 0 )
10101009
{
1011-
emit drawingProgress( featureCount, totalFeatures );
1010+
// emit drawingProgress( featureCount, totalFeatures );
10121011
qApp->processEvents();
10131012
}
1014-
#else
1015-
Q_UNUSED( totalFeatures );
1013+
// #else
1014+
// Q_UNUSED( totalFeatures );
10161015
#endif //Q_WS_MAC
10171016

10181017
// check if feature is selected

0 commit comments

Comments
 (0)
Please sign in to comment.