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