Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QStringLiteral
  • Loading branch information
nyalldawson committed Sep 5, 2018
1 parent 65e9cff commit fe3e494
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/gui/symbology/qgsstylemanagerdialog.cpp
Expand Up @@ -545,7 +545,7 @@ QString QgsStyleManagerDialog::addColorRampStatic( QWidget *parent, QgsStyle *st
{
// Q_ASSERT( 0 && "invalid ramp type" );
// bailing out is rather harsh!
QgsDebugMsg( "invalid ramp type " + rampType );
QgsDebugMsg( QStringLiteral( "invalid ramp type %1" ).arg( rampType ) );
return QString();
}

Expand Down Expand Up @@ -958,7 +958,7 @@ void QgsStyleManagerDialog::groupChanged( const QModelIndex &index )
QgsStyle::StyleEntity type = currentItemType() < 3 ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "Entity not implemented" );
QgsDebugMsg( QStringLiteral( "Entity not implemented" ) );
return;
}

Expand Down Expand Up @@ -1156,7 +1156,7 @@ void QgsStyleManagerDialog::removeGroup()

void QgsStyleManagerDialog::groupRenamed( QStandardItem *item )
{
QgsDebugMsg( "Symbol group edited: data=" + item->data( Qt::UserRole + 1 ).toString() + " text=" + item->text() );
QgsDebugMsg( QStringLiteral( "Symbol group edited: data=%1 text=%2" ).arg( item->data( Qt::UserRole + 1 ).toString(), item->text() ) );
int id = item->data( Qt::UserRole + 1 ).toInt();
QString name = item->text();
if ( item->parent()->data( Qt::UserRole + 1 ) == "smartgroups" )
Expand Down Expand Up @@ -1243,7 +1243,7 @@ void QgsStyleManagerDialog::regrouped( QStandardItem *item )
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "Unknown style entity" );
QgsDebugMsg( QStringLiteral( "Unknown style entity" ) );
return;
}

Expand Down Expand Up @@ -1365,7 +1365,7 @@ void QgsStyleManagerDialog::grouptreeContextMenu( QPoint point )
QPoint globalPos = groupTree->viewport()->mapToGlobal( point );

QModelIndex index = groupTree->indexAt( point );
QgsDebugMsg( "Now you clicked: " + index.data().toString() );
QgsDebugMsg( QStringLiteral( "Now you clicked: %1" ).arg( index.data().toString() ) );

if ( index.isValid() && !mGrouppingMode )
mGroupTreeContextMenu->popup( globalPos );
Expand Down Expand Up @@ -1407,7 +1407,7 @@ void QgsStyleManagerDialog::addFavoriteSelectedSymbols()
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "unknown entity type" );
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
return;
}

Expand All @@ -1424,7 +1424,7 @@ void QgsStyleManagerDialog::removeFavoriteSelectedSymbols()
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "unknown entity type" );
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
return;
}

Expand All @@ -1444,7 +1444,7 @@ void QgsStyleManagerDialog::tagSelectedSymbols( bool newTag )
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "unknown entity type" );
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
return;
}

Expand All @@ -1471,7 +1471,7 @@ void QgsStyleManagerDialog::tagSelectedSymbols( bool newTag )
}
populateList();

QgsDebugMsg( "Selected Action: " + selectedItem->text() );
QgsDebugMsg( QStringLiteral( "Selected Action: %1" ).arg( selectedItem->text() ) );
}
}

Expand All @@ -1484,7 +1484,7 @@ void QgsStyleManagerDialog::detagSelectedSymbols()
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
if ( currentItemType() > 3 )
{
QgsDebugMsg( "unknown entity type" );
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
return;
}
QModelIndexList indexes = listItems->selectionModel()->selectedIndexes();
Expand All @@ -1494,7 +1494,7 @@ void QgsStyleManagerDialog::detagSelectedSymbols()
}
populateList();

QgsDebugMsg( "Selected Action: " + selectedItem->text() );
QgsDebugMsg( QStringLiteral( "Selected Action: %1" ).arg( selectedItem->text() ) );
}
}

Expand Down

0 comments on commit fe3e494

Please sign in to comment.