From 8fc762a57bd6b520564236c0fe9abab724c04b39 Mon Sep 17 00:00:00 2001 From: yifang Date: Fri, 31 Dec 2021 23:48:21 +0800 Subject: [PATCH] fix:add "gdprg","gdvideo","gdpicture","gdtts" scheme --- main.cc | 2 +- mainwindow.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cc b/main.cc index 2ab8b8fc..3d866052 100644 --- a/main.cc +++ b/main.cc @@ -263,7 +263,7 @@ int main( int argc, char ** argv ) #endif - QStringList localSchemes={"gdlookup","gdau","gico","qrcx","bres","bword"}; + QStringList localSchemes={"gdlookup","gdau","gico","qrcx","bres","bword","gdprg","gdvideo","gdpicture","gdtts"}; for (int i = 0; i < localSchemes.size(); ++i) { diff --git a/mainwindow.cc b/mainwindow.cc index 299dc5aa..31a41cf7 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -150,7 +150,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ): QWebEngineProfile::defaultProfile()->installUrlSchemeHandler("gdlookup", handler); QWebEngineProfile::defaultProfile()->installUrlSchemeHandler("bword", handler); - QStringList localSchemes={"gdau","gico","qrcx","bres"}; + QStringList localSchemes={"gdau","gico","qrcx","bres","gdprg","gdvideo","gdpicture","gdtts"}; GicoSchemeHandler *h=new GicoSchemeHandler(articleNetMgr); for(int i=0;iinstallUrlSchemeHandler(localSchemes.at(i).toLatin1(), h);