diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-05 09:43:49 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-05 10:00:54 +0200 |
commit | 2cd0924e7f0147ecbba1197f7d0d32260434a2fd (patch) | |
tree | ff7b72fb9120daa7513ab93c47ba5bdd1b5a4b13 /src/datavisualizationqml2/declarativesurface.cpp | |
parent | a6c8a0cca08b4f19c66b55c8c778229ea0b3c85d (diff) |
Q_PROPERTY NOTIFY addition, part 2
Task-number: QTRD-2534
Change-Id: I243f1457aef986d54cb27a5a24b411b2291d8c0d
Change-Id: I243f1457aef986d54cb27a5a24b411b2291d8c0d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualizationqml2/declarativesurface.cpp')
-rw-r--r-- | src/datavisualizationqml2/declarativesurface.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/datavisualizationqml2/declarativesurface.cpp b/src/datavisualizationqml2/declarativesurface.cpp index e898bd40..853d0d59 100644 --- a/src/datavisualizationqml2/declarativesurface.cpp +++ b/src/datavisualizationqml2/declarativesurface.cpp @@ -41,14 +41,17 @@ DeclarativeSurface::DeclarativeSurface(QQuickItem *parent) m_shared = new Surface3DController(boundingRect().toRect()); setSharedController(m_shared); - QObject::connect(m_shared, &Surface3DController::smoothSurfaceEnabledChanged, this, - &DeclarativeSurface::smoothSurfaceEnabledChanged); - QItemModelSurfaceDataProxy *proxy = new QItemModelSurfaceDataProxy; m_shared->setActiveDataProxy(proxy); + QObject::connect(m_shared, &Surface3DController::smoothSurfaceEnabledChanged, this, + &DeclarativeSurface::smoothSurfaceEnabledChanged); QObject::connect(m_shared, &Surface3DController::selectedPointChanged, this, &DeclarativeSurface::selectedPointChanged); + QObject::connect(m_shared, &Surface3DController::surfaceVisibleChanged, this, + &DeclarativeSurface::surfaceVisibleChanged); + QObject::connect(m_shared, &Surface3DController::surfaceGridEnabledChanged, this, + &DeclarativeSurface::surfaceGridEnabledChanged); } DeclarativeSurface::~DeclarativeSurface() |