aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-08-07 11:26:37 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-16 07:24:06 +0200
commitf21e9ba6efa2b1c8169491db271f79b87b5b0ce4 (patch)
tree6eabf1ad37e12247f210e3fe77f64abf6255aa56 /examples/quick/scenegraph
parentcc39a7d7affe37741292989c634aec3f60660c0e (diff)
Remove interim compatibility measures
Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
Diffstat (limited to 'examples/quick/scenegraph')
-rw-r--r--examples/quick/scenegraph/openglunderqml/squircle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/squircle.cpp b/examples/quick/scenegraph/openglunderqml/squircle.cpp
index 24e8533d8e..867ce4a7e0 100644
--- a/examples/quick/scenegraph/openglunderqml/squircle.cpp
+++ b/examples/quick/scenegraph/openglunderqml/squircle.cpp
@@ -59,8 +59,8 @@ void Squircle::setT(qreal t)
return;
m_t = t;
emit tChanged();
- if (canvas())
- canvas()->update();
+ if (window())
+ window()->update();
}
//! [8]
@@ -113,7 +113,7 @@ void Squircle::paint()
m_program->bindAttributeLocation("vertices", 0);
m_program->link();
- connect(canvas()->openglContext(), SIGNAL(aboutToBeDestroyed()),
+ connect(window()->openglContext(), SIGNAL(aboutToBeDestroyed()),
this, SLOT(cleanup()), Qt::DirectConnection);
}
//! [4] //! [5]