mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
0ed2f697cd
commit
1502dc318a
|
@ -447,13 +447,13 @@ void ArticleView::loadFinished( bool result )
|
|||
if ( isScrollTo( scrollTo ) ) {
|
||||
setCurrentArticle( scrollTo, true );
|
||||
}
|
||||
else{
|
||||
setActiveArticleId("");
|
||||
else {
|
||||
setActiveArticleId( "" );
|
||||
}
|
||||
}
|
||||
else{
|
||||
else {
|
||||
//clear current active dictionary id;
|
||||
setActiveArticleId("");
|
||||
setActiveArticleId( "" );
|
||||
}
|
||||
|
||||
webview->unsetCursor();
|
||||
|
|
|
@ -2508,7 +2508,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
|
|||
}
|
||||
|
||||
if ( obj == this && ev->type() == QEvent::WindowStateChange ) {
|
||||
auto stev = dynamic_cast< QWindowStateChangeEvent * >( ev );
|
||||
auto stev = dynamic_cast< QWindowStateChangeEvent * >( ev );
|
||||
wasMaximized = ( stev->oldState() == Qt::WindowMaximized && isMinimized() );
|
||||
}
|
||||
|
||||
|
@ -2522,7 +2522,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
|
|||
auto keyevent = dynamic_cast< QKeyEvent * >( ev );
|
||||
|
||||
bool const handleCtrlTab = ( obj == translateLine || obj == ui.wordList || obj == ui.historyList
|
||||
|| obj == ui.favoritesTree || obj == ui.dictsList || obj == groupList );
|
||||
|| obj == ui.favoritesTree || obj == ui.dictsList || obj == groupList );
|
||||
|
||||
if ( keyevent->modifiers() == Qt::ControlModifier && keyevent->key() == Qt::Key_Tab ) {
|
||||
if ( cfg.preferences.mruTabOrder ) {
|
||||
|
|
Loading…
Reference in a new issue