Skip to content
Snippets Groups Projects
Commit c7418f97 authored by akiraohgaki's avatar akiraohgaki
Browse files

Rename slot name

parent f254614c
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ void XdgUrl::process() ...@@ -45,7 +45,7 @@ void XdgUrl::process()
QString url = metadata_["url"].toString(); QString url = metadata_["url"].toString();
qtlibs::NetworkResource *resource = new qtlibs::NetworkResource(url, QUrl(url), true, this); qtlibs::NetworkResource *resource = new qtlibs::NetworkResource(url, QUrl(url), true, this);
connect(resource, &qtlibs::NetworkResource::downloadProgress, this, &XdgUrl::downloadProgress); connect(resource, &qtlibs::NetworkResource::downloadProgress, this, &XdgUrl::downloadProgress);
connect(resource, &qtlibs::NetworkResource::finished, this, &XdgUrl::downloaded); connect(resource, &qtlibs::NetworkResource::finished, this, &XdgUrl::networkResourceFinished);
resource->get(); resource->get();
emit started(); emit started();
} }
...@@ -75,7 +75,7 @@ void XdgUrl::openDestination() ...@@ -75,7 +75,7 @@ void XdgUrl::openDestination()
} }
} }
void XdgUrl::downloaded(qtlibs::NetworkResource *resource) void XdgUrl::networkResourceFinished(qtlibs::NetworkResource *resource)
{ {
if (resource->reply()->error() != QNetworkReply::NoError) { if (resource->reply()->error() != QNetworkReply::NoError) {
QJsonObject result; QJsonObject result;
......
...@@ -33,7 +33,7 @@ public slots: ...@@ -33,7 +33,7 @@ public slots:
void openDestination(); void openDestination();
private slots: private slots:
void downloaded(qtlibs::NetworkResource *resource); void networkResourceFinished(qtlibs::NetworkResource *resource);
private: private:
void parse(); void parse();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment