summaryrefslogtreecommitdiffstats
path: root/tests/kinectsurface/surfacedata.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-31 08:22:32 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-31 08:23:18 +0200
commit656ced83993b765ddcca04a6f0b26135411ae11c (patch)
treed4ae6e7d704aee7318697f2bd15cdfc45f78c46c /tests/kinectsurface/surfacedata.cpp
parent7669b6ed1aee55b29b06f4077cae537f28f1d9d1 (diff)
Kinect demo updates
Larger buttons etc. Change-Id: I519876518859a8e9800154b2b1eff164f7b0b892 Change-Id: I519876518859a8e9800154b2b1eff164f7b0b892 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'tests/kinectsurface/surfacedata.cpp')
-rw-r--r--tests/kinectsurface/surfacedata.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kinectsurface/surfacedata.cpp b/tests/kinectsurface/surfacedata.cpp
index 71240c67..07b18746 100644
--- a/tests/kinectsurface/surfacedata.cpp
+++ b/tests/kinectsurface/surfacedata.cpp
@@ -148,8 +148,10 @@ void SurfaceData::updateData()
if (m_mode != Surface) {
setData(depthMap);
} else {
+ static_cast<QHeightMapSurfaceDataProxy *>(m_surface->seriesList().at(0)->dataProxy())->setValueRanges(
+ 0, depthMap.width(), 0, depthMap.height());
static_cast<QHeightMapSurfaceDataProxy *>(m_surface->seriesList().at(0)->dataProxy())->setHeightMap(
- depthMap);
+ depthMap);
}
}