mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
f9a3705942
commit
701a4effb3
|
@ -125,7 +125,7 @@ void ArticleView::setupWebview()
|
||||||
this->tabWidget->addTab( mainLayout, "Dictionaries" );
|
this->tabWidget->addTab( mainLayout, "Dictionaries" );
|
||||||
this->tabWidget->setTabBarAutoHide( true );
|
this->tabWidget->setTabBarAutoHide( true );
|
||||||
|
|
||||||
// end UI setup
|
// end UI setup
|
||||||
|
|
||||||
connect( this->searchPanel->previous, &QPushButton::clicked, this, &ArticleView::on_searchPrevious_clicked );
|
connect( this->searchPanel->previous, &QPushButton::clicked, this, &ArticleView::on_searchPrevious_clicked );
|
||||||
connect( this->searchPanel->next, &QPushButton::clicked, this, &ArticleView::on_searchNext_clicked );
|
connect( this->searchPanel->next, &QPushButton::clicked, this, &ArticleView::on_searchNext_clicked );
|
||||||
|
@ -1262,12 +1262,13 @@ void ArticleView::syncBackgroundColorWithCfgDarkReader() const
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArticleView::openWebsiteInNewTab( QString name, QString url ) {
|
void ArticleView::openWebsiteInNewTab( QString name, QString url )
|
||||||
|
{
|
||||||
QString escaped = Utils::escapeAmps( name );
|
QString escaped = Utils::escapeAmps( name );
|
||||||
|
|
||||||
//found existed QWebEngineView.
|
//found existed QWebEngineView.
|
||||||
auto * view = new QWebEngineView( this );
|
auto * view = new QWebEngineView( this );
|
||||||
view->load( QUrl(url) );
|
view->load( QUrl( url ) );
|
||||||
|
|
||||||
tabWidget->addTab( view, escaped );
|
tabWidget->addTab( view, escaped );
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
// QString escaped = Utils::escapeAmps( name );
|
||||||
|
|
||||||
// auto * view = new ArticleView( this, articleNetMgr, audioPlayerFactory.player(), cfg );
|
// auto * view = new ArticleView( this, articleNetMgr, audioPlayerFactory.player(), cfg );
|
||||||
|
|
Loading…
Reference in a new issue