mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
opt: wikipedia word list optimization
This commit is contained in:
parent
919e948ac7
commit
bdf5fed904
|
@ -137,7 +137,10 @@ MediaWikiWordSearchRequest::MediaWikiWordSearchRequest( wstring const & str,
|
||||||
|
|
||||||
Utils::Url::addQueryItem( reqUrl, "apprefix", QString::fromStdU32String( str ).replace( '+', "%2B" ) );
|
Utils::Url::addQueryItem( reqUrl, "apprefix", QString::fromStdU32String( str ).replace( '+', "%2B" ) );
|
||||||
|
|
||||||
netReply = std::shared_ptr< QNetworkReply >( mgr.get( QNetworkRequest( reqUrl ) ) );
|
QNetworkRequest req( reqUrl );
|
||||||
|
//millseconds.
|
||||||
|
req.setTransferTimeout( 2000 );
|
||||||
|
netReply = std::shared_ptr< QNetworkReply >( mgr.get( req ) );
|
||||||
|
|
||||||
connect( netReply.get(), SIGNAL( finished() ), this, SLOT( downloadFinished() ) );
|
connect( netReply.get(), SIGNAL( finished() ), this, SLOT( downloadFinished() ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue