Commit 8e8738df authored by Alan Alpert's avatar Alan Alpert Committed by Qt by Nokia

Update Squircle example towards new guidelines

Doesn't work properly though. QTBUG-24566 filed for that.

Change-Id: I31a8184456add6060e65bf11323153dc7a80b306
Reviewed-by: 's avatarMichael Brasser <michael.brasser@nokia.com>
parent 6051714b
......@@ -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"));
......
......@@ -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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment