Update Squircle example towards new guidelines
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 29 Feb 2012 07:40:39 +0000 (17:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Mar 2012 04:37:59 +0000 (05:37 +0100)
Doesn't work properly though. QTBUG-24566 filed for that.

Change-Id: I31a8184456add6060e65bf11323153dc7a80b306
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
examples/quick/openglunderqml/main.cpp
examples/quick/openglunderqml/main.qml

index 3b682de..8d1a91b 100644 (file)
@@ -49,7 +49,7 @@ int main(int argc, char **argv)
 {
     QGuiApplication app(argc, argv);
 
-    qmlRegisterType<Squircle>("QtQuick", 2, 0, "Squircle");
+    qmlRegisterType<Squircle>("OpenGLUnderQML", 2, 0, "Squircle");
 
     QQuickView view;
     view.setSource(QUrl("main.qml"));
index 1485cbb..174bb26 100644 (file)
 ****************************************************************************/
 
 import QtQuick 2.0
+import OpenGLUnderQML 2.0
 
 Item {
 
-    width: 400
-    height: 300
+    width: 320
+    height: 480
 
     Squircle {
+        width: 320
+        height: 320
         SequentialAnimation on t {
             NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
             NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }