mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: some entries do not need to be translated
This commit is contained in:
parent
6abe288f16
commit
0bf8a4a3fd
|
@ -1971,7 +1971,7 @@ void MainWindow::updateWindowTitle()
|
||||||
if ( view ) {
|
if ( view ) {
|
||||||
QString str = view->getTitle();
|
QString str = view->getTitle();
|
||||||
if ( !str.isEmpty() ) {
|
if ( !str.isEmpty() ) {
|
||||||
setWindowTitle( tr( "%1 - %2" ).arg( str, "GoldenDict-ng" ) );
|
setWindowTitle( QString( "%1 - %2" ).arg( str, "GoldenDict-ng" ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -553,7 +553,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ui.pinButton->isChecked() )
|
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
|
/// Too large strings make window expand which is probably not what user
|
||||||
/// wants
|
/// wants
|
||||||
|
@ -916,7 +916,7 @@ void ScanPopup::pinButtonClicked( bool checked )
|
||||||
setAttribute( Qt::WA_MacAlwaysShowToolWindow );
|
setAttribute( Qt::WA_MacAlwaysShowToolWindow );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) );
|
setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) );
|
||||||
dictionaryBar.setMovable( true );
|
dictionaryBar.setMovable( true );
|
||||||
hideTimer.stop();
|
hideTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue