mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Add finished signal to Resource loading
This commit is contained in:
parent
8c290ea6b9
commit
17aa2845a8
2 changed files with 4 additions and 0 deletions
|
@ -380,6 +380,7 @@ void Resource::finishedLoading(bool success) {
|
|||
_failedToLoad = true;
|
||||
}
|
||||
_loadPriorities.clear();
|
||||
emit finished(success);
|
||||
}
|
||||
|
||||
void Resource::reinsert() {
|
||||
|
|
|
@ -201,6 +201,9 @@ signals:
|
|||
/// This can be used instead of downloadFinished to access data before it is processed.
|
||||
void loaded(const QByteArray& request);
|
||||
|
||||
/// Fired when the resource has finished loading.
|
||||
void finished(bool success);
|
||||
|
||||
/// Fired when the resource failed to load.
|
||||
void failed(QNetworkReply::NetworkError error);
|
||||
|
||||
|
|
Loading…
Reference in a new issue