Skip to content
Permalink
Browse files

Fixups

  • Loading branch information
nyalldawson committed Mar 21, 2021
1 parent 55a79ac commit d40621534f1c1995e4854ff6d4884a5e01c02e23
Showing with 10 additions and 10 deletions.
  1. +1 −1 src/providers/wfs/qgswfssubsetstringeditor.cpp
  2. +9 −9 src/python/qgspythonutilsimpl.cpp
@@ -44,7 +44,7 @@ QgsSubsetStringEditorInterface *QgsWfsSubsetStringEditor::create( QgsVectorLayer
d->setSupportMultipleTables( bSupportJoins, QgsSQLStatement::quotedIdentifierIfNeeded( displayedTypeName ) );

QMap< QString, QString > mapTypenameToTitle;
for ( const QgsWfsCapabilities::FeatureType f : std::as_const( caps.featureTypes ) )
for ( const QgsWfsCapabilities::FeatureType &f : std::as_const( caps.featureTypes ) )
mapTypenameToTitle[f.name] = f.title;

QList< QgsSQLComposerDialog::PairNameTitle > tablenames;
@@ -111,15 +111,15 @@ bool QgsPythonUtilsImpl::checkSystemImports()

// set PyQt api versions
for ( const QString &clsName :
{
QStringLiteral( "QDate" ),
QStringLiteral( "QDateTime" ),
QStringLiteral( "QString" ),
QStringLiteral( "QTextStream" ),
QStringLiteral( "QTime" ),
QStringLiteral( "QUrl" ),
QStringLiteral( "QVariant" )
} )
{
QStringLiteral( "QDate" ),
QStringLiteral( "QDateTime" ),
QStringLiteral( "QString" ),
QStringLiteral( "QTextStream" ),
QStringLiteral( "QTime" ),
QStringLiteral( "QUrl" ),
QStringLiteral( "QVariant" )
} )
{
if ( !runString( QStringLiteral( "sip.setapi('%1', 2)" ).arg( clsName ),
QObject::tr( "Couldn't set SIP API versions." ) + '\n' + QObject::tr( "Python support will be disabled." ) ) )

0 comments on commit d406215

Please sign in to comment.