[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-11-04 03:29:03 +00:00 committed by GitHub
parent f9a3705942
commit 701a4effb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -125,7 +125,7 @@ void ArticleView::setupWebview()
this->tabWidget->addTab( mainLayout, "Dictionaries" );
this->tabWidget->setTabBarAutoHide( true );
// end UI setup
// end UI setup
connect( this->searchPanel->previous, &QPushButton::clicked, this, &ArticleView::on_searchPrevious_clicked );
connect( this->searchPanel->next, &QPushButton::clicked, this, &ArticleView::on_searchNext_clicked );
@ -1262,12 +1262,13 @@ void ArticleView::syncBackgroundColorWithCfgDarkReader() const
#endif
}
void ArticleView::openWebsiteInNewTab( QString name, QString url ) {
void ArticleView::openWebsiteInNewTab( QString name, QString url )
{
QString escaped = Utils::escapeAmps( name );
//found existed QWebEngineView.
//found existed QWebEngineView.
auto * view = new QWebEngineView( this );
view->load( QUrl(url) );
view->load( QUrl( url ) );
tabWidget->addTab( view, escaped );
}

View file

@ -4376,7 +4376,8 @@ void MainWindow::showFTSIndexingName( QString const & name )
}
}
void MainWindow::openWebsiteInNewTab( QString name, QString url ){
void MainWindow::openWebsiteInNewTab( QString name, QString url )
{
// QString escaped = Utils::escapeAmps( name );
// auto * view = new ArticleView( this, articleNetMgr, audioPlayerFactory.player(), cfg );