aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/textureprovider/etcprovider.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2013-03-26 20:29:10 -0500
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-02 10:29:34 +0200
commit3e0bcbff98346385ec32bc951cd958d1c1bfb371 (patch)
tree6c23d33d60396e73134b9cadb3f2abe08d7bea80 /examples/quick/textureprovider/etcprovider.h
parent5eae605a475db96ed16d81101e00e736efe9f202 (diff)
Update EtcProvider example to support configurable base url.
Change-Id: Idb047bc7bf2c9f1c62c4749cb416bdf267e66e17 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'examples/quick/textureprovider/etcprovider.h')
-rw-r--r--examples/quick/textureprovider/etcprovider.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/quick/textureprovider/etcprovider.h b/examples/quick/textureprovider/etcprovider.h
index 24570e90e9..b7f2f3d67d 100644
--- a/examples/quick/textureprovider/etcprovider.h
+++ b/examples/quick/textureprovider/etcprovider.h
@@ -45,6 +45,7 @@
#include <qopengl.h>
#include <QQuickImageProvider>
#include <QtQuick/QSGTexture>
+#include <QUrl>
class EtcProvider : public QQuickImageProvider
{
@@ -54,6 +55,11 @@ public:
{}
QQuickTextureFactory *requestTexture(const QString &id, QSize *size, const QSize &requestedSize);
+
+ void setBaseUrl(const QUrl &base);
+
+private:
+ QUrl m_baseUrl;
};
class EtcTexture : public QSGTexture