mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
opt: inspector debug message changes
This commit is contained in:
parent
91a5696361
commit
be8331afa8
|
@ -21,27 +21,23 @@ void ArticleInspector::setInspectPage( QWebEnginePage * page )
|
||||||
{
|
{
|
||||||
viewContainer->page()->setInspectedPage( page );
|
viewContainer->page()->setInspectedPage( page );
|
||||||
|
|
||||||
if( !page )
|
if ( !page ) {
|
||||||
{
|
qDebug() << "reset inspector";
|
||||||
qDebug() << "set inspected page to nullptr";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
raise();
|
raise();
|
||||||
show();
|
show();
|
||||||
qDebug() << "inspector finished";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArticleInspector::triggerAction( QWebEnginePage * page )
|
void ArticleInspector::triggerAction( QWebEnginePage * page )
|
||||||
{
|
{
|
||||||
if( !page )
|
setInspectPage( page );
|
||||||
{
|
|
||||||
qDebug() << "set inspected page to nullptr";
|
if ( !page ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setInspectPage(page);
|
|
||||||
|
|
||||||
#if( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) || QT_VERSION > QT_VERSION_CHECK(6,3,0) )
|
#if( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) || QT_VERSION > QT_VERSION_CHECK(6,3,0) )
|
||||||
page->triggerAction( QWebEnginePage::InspectElement );
|
page->triggerAction( QWebEnginePage::InspectElement );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue