diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index b1d1a617..d9aa581d 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -1971,7 +1971,7 @@ void MainWindow::updateWindowTitle() if ( view ) { QString str = view->getTitle(); if ( !str.isEmpty() ) { - setWindowTitle( tr( "%1 - %2" ).arg( str, "GoldenDict-ng" ) ); + setWindowTitle( QString( "%1 - %2" ).arg( str, "GoldenDict-ng" ) ); } } } diff --git a/src/ui/scanpopup.cc b/src/ui/scanpopup.cc index ed061586..5c4edd00 100644 --- a/src/ui/scanpopup.cc +++ b/src/ui/scanpopup.cc @@ -553,7 +553,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus ) } if ( ui.pinButton->isChecked() ) - setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); + setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); /// Too large strings make window expand which is probably not what user /// wants @@ -916,7 +916,7 @@ void ScanPopup::pinButtonClicked( bool checked ) setAttribute( Qt::WA_MacAlwaysShowToolWindow ); #endif - setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); + setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); dictionaryBar.setMovable( true ); hideTimer.stop(); }