Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Squircle example towards new guidelines
Doesn't work properly though. QTBUG-24566 filed for that.

Change-Id: I31a8184456add6060e65bf11323153dc7a80b306
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
  • Loading branch information
Alan Alpert authored and Qt by Nokia committed Mar 20, 2012
1 parent 6051714 commit 8e8738d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/quick/openglunderqml/main.cpp
Expand Up @@ -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"));
Expand Down
7 changes: 5 additions & 2 deletions examples/quick/openglunderqml/main.qml
Expand Up @@ -40,13 +40,16 @@
****************************************************************************/

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 }
Expand Down

0 comments on commit 8e8738d

Please sign in to comment.