mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34: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 ) ) {
|
if ( isScrollTo( scrollTo ) ) {
|
||||||
setCurrentArticle( scrollTo, true );
|
setCurrentArticle( scrollTo, true );
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
setActiveArticleId("");
|
setActiveArticleId( "" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
//clear current active dictionary id;
|
//clear current active dictionary id;
|
||||||
setActiveArticleId("");
|
setActiveArticleId( "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
webview->unsetCursor();
|
webview->unsetCursor();
|
||||||
|
|
|
@ -2508,7 +2508,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( obj == this && ev->type() == QEvent::WindowStateChange ) {
|
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() );
|
wasMaximized = ( stev->oldState() == Qt::WindowMaximized && isMinimized() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2522,7 +2522,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
|
||||||
auto keyevent = dynamic_cast< QKeyEvent * >( ev );
|
auto keyevent = dynamic_cast< QKeyEvent * >( ev );
|
||||||
|
|
||||||
bool const handleCtrlTab = ( obj == translateLine || obj == ui.wordList || obj == ui.historyList
|
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 ( keyevent->modifiers() == Qt::ControlModifier && keyevent->key() == Qt::Key_Tab ) {
|
||||||
if ( cfg.preferences.mruTabOrder ) {
|
if ( cfg.preferences.mruTabOrder ) {
|
||||||
|
|
Loading…
Reference in a new issue