Skip to content
Permalink
Browse files
QString fixups
  • Loading branch information
nyalldawson committed Jun 1, 2021
1 parent f1aab15 commit ce5271ca2e2f27993da717e33fd530acd5383672
@@ -698,7 +698,7 @@ QgsIdentifyResultsFeatureItem *QgsIdentifyResultsDialog::createFeatureItem( QgsV
break;

const QgsEditorWidgetSetup setup = QgsGui::editorWidgetRegistry()->findBest( vlayer, fields[i].name() );
if ( setup.type() == QStringLiteral( "Hidden" ) )
if ( setup.type() == QLatin1String( "Hidden" ) )
{
continue;
}
@@ -722,7 +722,7 @@ QgsIdentifyResultsFeatureItem *QgsIdentifyResultsDialog::createFeatureItem( QgsV
attrItem->setSortData( 1, value );
attrItem->setToolTip( 1, value );

if ( setup.type() == QStringLiteral( "JsonEdit" ) )
if ( setup.type() == QLatin1String( "JsonEdit" ) )
{
QgsJsonEditWidget *jsonEditWidget = new QgsJsonEditWidget();
jsonEditWidget->setJsonText( value );
@@ -69,7 +69,7 @@ QgsDirectoryItem::QgsDirectoryItem( QgsDataItem *parent, const QString &name,

settings.beginGroup( QStringLiteral( "qgis/browserPathColors" ) );
QString settingKey = mDirPath;
settingKey.replace( '/', QStringLiteral( "|||" ) );
settingKey.replace( '/', QLatin1String( "|||" ) );
if ( settings.childKeys().contains( settingKey ) )
{
const QString colorString = settings.value( settingKey ).toString();
@@ -146,7 +146,7 @@ void QgsDirectoryItem::setCustomColor( const QString &directory, const QColor &c
QgsSettings settings;
settings.beginGroup( QStringLiteral( "qgis/browserPathColors" ) );
QString settingKey = directory;
settingKey.replace( '/', QStringLiteral( "|||" ) );
settingKey.replace( '/', QLatin1String( "|||" ) );
if ( color.isValid() )
settings.setValue( settingKey, color.name( QColor::HexArgb ) );
else
@@ -127,7 +127,7 @@ void QgsFavoritesItem::renameFavorite( const QString &path, const QString &name
if ( dir == path )
{
QStringList newParts { path, name };
favDirs[i] = newParts.join( QStringLiteral( "|||" ) );
favDirs[i] = newParts.join( QLatin1String( "|||" ) );
break;
}
}
@@ -400,7 +400,7 @@ QgsMimeDataUtils::UriList QgsGeoPackageCollectionItem::mimeUris() const
{
QgsMimeDataUtils::Uri vectorUri;
vectorUri.providerKey = QStringLiteral( "ogr" );
vectorUri.uri = path().replace( QStringLiteral( "gpkg:/" ), QString() );
vectorUri.uri = path().replace( QLatin1String( "gpkg:/" ), QString() );
vectorUri.layerType = QStringLiteral( "vector" );
QgsMimeDataUtils::Uri rasterUri { vectorUri };
rasterUri.layerType = QStringLiteral( "raster" );

0 comments on commit ce5271c

Please sign in to comment.