mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: inspector
This commit is contained in:
parent
a205d22139
commit
f542642c85
|
@ -1656,9 +1656,7 @@ ArticleView * MainWindow::createNewTab( bool switchToIt,
|
|||
dictionaryBar.toggleViewAction(),
|
||||
groupList );
|
||||
|
||||
connect( view, &ArticleView::inspectSignal,this,[this](QWebEnginePage * page){
|
||||
inspector->setInspectPage( page );
|
||||
});
|
||||
connect( view, &ArticleView::inspectSignal,this,&MainWindow::inspectElement);
|
||||
|
||||
connect( view, SIGNAL( titleChanged( ArticleView *, QString const & ) ),
|
||||
this, SLOT( titleChanged( ArticleView *, QString const & ) ) );
|
||||
|
@ -1733,6 +1731,11 @@ ArticleView * MainWindow::createNewTab( bool switchToIt,
|
|||
return view;
|
||||
}
|
||||
|
||||
void MainWindow::inspectElement( QWebEnginePage * page )
|
||||
{
|
||||
inspector->setInspectPage( page );
|
||||
}
|
||||
|
||||
void MainWindow::tabCloseRequested( int x )
|
||||
{
|
||||
QWidget * w = ui.tabWidget->widget( x );
|
||||
|
|
|
@ -489,6 +489,8 @@ private slots:
|
|||
|
||||
void clipboardChange( );
|
||||
|
||||
void inspectElement( QWebEnginePage * );
|
||||
|
||||
signals:
|
||||
/// Set optional parts expand mode for all tabs
|
||||
void setExpandOptionalParts( bool expand );
|
||||
|
|
Loading…
Reference in a new issue