bool QgsMemoryProvider::setSubsetString( QString theSQL, bool updateFeatureCount ) { Q_UNUSED( updateFeatureCount ); if ( !theSQL.isEmpty() ) { QgsExpression tempExpression( theSQL ); if ( tempExpression.hasParserError() ) return false; } mSubsetString = theSQL; return true; }
bool QgsMemoryProvider::setSubsetString( const QString& theSQL, bool updateFeatureCount ) { Q_UNUSED( updateFeatureCount ); if ( !theSQL.isEmpty() ) { QgsExpression tempExpression( theSQL ); if ( tempExpression.hasParserError() ) return false; } mSubsetString = theSQL; mCacheMinMaxDirty = true; emit dataChanged(); return true; }