コード例 #1
0
ファイル: qgsmemoryprovider.cpp プロジェクト: ACorradini/QGIS
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;
}
コード例 #2
0
ファイル: qgsmemoryprovider.cpp プロジェクト: V17nika/QGIS
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;
}