opt: inspector debug message changes

This commit is contained in:
YiFang Xiao 2023-05-12 08:04:21 +08:00 committed by xiaoyifang
parent 91a5696361
commit be8331afa8

View file

@ -21,27 +21,23 @@ void ArticleInspector::setInspectPage( QWebEnginePage * page )
{
viewContainer->page()->setInspectedPage( page );
if( !page )
{
qDebug() << "set inspected page to nullptr";
if ( !page ) {
qDebug() << "reset inspector";
return;
}
raise();
show();
qDebug() << "inspector finished";
}
void ArticleInspector::triggerAction( QWebEnginePage * page )
{
if( !page )
{
qDebug() << "set inspected page to nullptr";
setInspectPage( page );
if ( !page ) {
return;
}
setInspectPage(page);
#if( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) || QT_VERSION > QT_VERSION_CHECK(6,3,0) )
page->triggerAction( QWebEnginePage::InspectElement );
#endif