mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
add Q_EMIT to signals
This commit is contained in:
@@ -122,7 +122,7 @@ void CDownloadManager::downloadFinished(QNetworkReply * reply)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(downloadComplete)
|
if(downloadComplete)
|
||||||
finished(successful, failed, encounteredErrors);
|
Q_EMIT finished(successful, failed, encounteredErrors);
|
||||||
|
|
||||||
file.reply->deleteLater();
|
file.reply->deleteLater();
|
||||||
file.reply = nullptr;
|
file.reply = nullptr;
|
||||||
@@ -149,7 +149,7 @@ void CDownloadManager::downloadProgressChanged(qint64 bytesReceived, qint64 byte
|
|||||||
if(received > total)
|
if(received > total)
|
||||||
total = received;
|
total = received;
|
||||||
|
|
||||||
downloadProgress(received, total);
|
Q_EMIT downloadProgress(received, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CDownloadManager::downloadInProgress(const QUrl & url) const
|
bool CDownloadManager::downloadInProgress(const QUrl & url) const
|
||||||
|
|||||||
Reference in New Issue
Block a user