Skip to content

Commit fe3e494

Browse files
committedSep 5, 2018
QStringLiteral
1 parent 65e9cff commit fe3e494

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎src/gui/symbology/qgsstylemanagerdialog.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ QString QgsStyleManagerDialog::addColorRampStatic( QWidget *parent, QgsStyle *st
545545
{
546546
// Q_ASSERT( 0 && "invalid ramp type" );
547547
// bailing out is rather harsh!
548-
QgsDebugMsg( "invalid ramp type " + rampType );
548+
QgsDebugMsg( QStringLiteral( "invalid ramp type %1" ).arg( rampType ) );
549549
return QString();
550550
}
551551

@@ -958,7 +958,7 @@ void QgsStyleManagerDialog::groupChanged( const QModelIndex &index )
958958
QgsStyle::StyleEntity type = currentItemType() < 3 ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
959959
if ( currentItemType() > 3 )
960960
{
961-
QgsDebugMsg( "Entity not implemented" );
961+
QgsDebugMsg( QStringLiteral( "Entity not implemented" ) );
962962
return;
963963
}
964964

@@ -1156,7 +1156,7 @@ void QgsStyleManagerDialog::removeGroup()
11561156

11571157
void QgsStyleManagerDialog::groupRenamed( QStandardItem *item )
11581158
{
1159-
QgsDebugMsg( "Symbol group edited: data=" + item->data( Qt::UserRole + 1 ).toString() + " text=" + item->text() );
1159+
QgsDebugMsg( QStringLiteral( "Symbol group edited: data=%1 text=%2" ).arg( item->data( Qt::UserRole + 1 ).toString(), item->text() ) );
11601160
int id = item->data( Qt::UserRole + 1 ).toInt();
11611161
QString name = item->text();
11621162
if ( item->parent()->data( Qt::UserRole + 1 ) == "smartgroups" )
@@ -1243,7 +1243,7 @@ void QgsStyleManagerDialog::regrouped( QStandardItem *item )
12431243
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
12441244
if ( currentItemType() > 3 )
12451245
{
1246-
QgsDebugMsg( "Unknown style entity" );
1246+
QgsDebugMsg( QStringLiteral( "Unknown style entity" ) );
12471247
return;
12481248
}
12491249

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

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

13701370
if ( index.isValid() && !mGrouppingMode )
13711371
mGroupTreeContextMenu->popup( globalPos );
@@ -1407,7 +1407,7 @@ void QgsStyleManagerDialog::addFavoriteSelectedSymbols()
14071407
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
14081408
if ( currentItemType() > 3 )
14091409
{
1410-
QgsDebugMsg( "unknown entity type" );
1410+
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
14111411
return;
14121412
}
14131413

@@ -1424,7 +1424,7 @@ void QgsStyleManagerDialog::removeFavoriteSelectedSymbols()
14241424
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
14251425
if ( currentItemType() > 3 )
14261426
{
1427-
QgsDebugMsg( "unknown entity type" );
1427+
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
14281428
return;
14291429
}
14301430

@@ -1444,7 +1444,7 @@ void QgsStyleManagerDialog::tagSelectedSymbols( bool newTag )
14441444
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
14451445
if ( currentItemType() > 3 )
14461446
{
1447-
QgsDebugMsg( "unknown entity type" );
1447+
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
14481448
return;
14491449
}
14501450

@@ -1471,7 +1471,7 @@ void QgsStyleManagerDialog::tagSelectedSymbols( bool newTag )
14711471
}
14721472
populateList();
14731473

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

@@ -1484,7 +1484,7 @@ void QgsStyleManagerDialog::detagSelectedSymbols()
14841484
QgsStyle::StyleEntity type = ( currentItemType() < 3 ) ? QgsStyle::SymbolEntity : QgsStyle::ColorrampEntity;
14851485
if ( currentItemType() > 3 )
14861486
{
1487-
QgsDebugMsg( "unknown entity type" );
1487+
QgsDebugMsg( QStringLiteral( "unknown entity type" ) );
14881488
return;
14891489
}
14901490
QModelIndexList indexes = listItems->selectionModel()->selectedIndexes();
@@ -1494,7 +1494,7 @@ void QgsStyleManagerDialog::detagSelectedSymbols()
14941494
}
14951495
populateList();
14961496

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

0 commit comments

Comments
 (0)
Please sign in to comment.