equal
deleted
inserted
replaced
16 |
16 |
17 public slots: |
17 public slots: |
18 |
18 |
19 private: |
19 private: |
20 QNetworkAccessManager *manager; |
20 QNetworkAccessManager *manager; |
21 QHash<QUrl, QByteArray> resources; |
21 |
22 QSet<QUrl> requestedResources; |
22 // hash and set of QString instead of QUrl to support Qt versions |
|
23 // older than 4.7 (those have no support for qHash(const QUrl &)) |
|
24 QHash<QString, QByteArray> resources; |
|
25 QSet<QString> requestedResources; |
23 |
26 |
24 QVariant loadResource(int type, const QUrl & name); |
27 QVariant loadResource(int type, const QUrl & name); |
25 |
28 |
26 private slots: |
29 private slots: |
27 void resourceDownloaded(); |
30 void resourceDownloaded(); |