From 90d55d7392715a037eaf92a8d4100041b1b7bf52 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Sun, 6 Oct 2024 17:10:56 -0400 Subject: [PATCH] clean: deprecated QVariant::type --- src/ui/articleview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 45722dce..0a99ad6f 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -1389,7 +1389,7 @@ void ArticleView::playSound() return link;})(); )"; webview->page()->runJavaScript( variable, [ this ]( const QVariant & result ) { - if ( result.type() == QVariant::String ) { + if ( result.typeId() == qMetaTypeId< QString >() ) { QString soundScript = result.toString(); if ( !soundScript.isEmpty() ) openLink( QUrl::fromEncoded( soundScript.toUtf8() ), webview->url() );