mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix:add "gdprg","gdvideo","gdpicture","gdtts" scheme
This commit is contained in:
parent
77e770c176
commit
8fc762a57b
2
main.cc
2
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)
|
||||
{
|
||||
|
|
|
@ -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;i<localSchemes.size();i++){
|
||||
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler(localSchemes.at(i).toLatin1(), h);
|
||||
|
|
Loading…
Reference in a new issue