From 701a4effb3ca2a7e4bbf838b8ed1ec0249af6be8 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 03:29:03 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/ui/articleview.cc | 9 +++++---- src/ui/mainwindow.cc | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 665b278e..2dc1f9cd 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -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 ); } diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 402ebf6a..5d48a0ad 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -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 );