summaryrefslogtreecommitdiff
path: root/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-15 13:00:45 +1000
committerBea Lam <bea.lam@nokia.com>2010-07-15 15:41:06 +1000
commitb78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3 (patch)
treefb83edea4a5f6fb9952c312c8b3ea81acefc286e /examples/declarative/tutorials/extending/chapter2-methods/main.cpp
parent8ed72a96bc5c3af283f8ca4460adae9d4b466479 (diff)
downloadqt4-tools-b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3.tar.gz
Change tutorial from using "Musician" etc. types to using "PieChart"
etc. types to make a more practical example that shows how to do painting as well. Also includes some tutorial improvments.
Diffstat (limited to 'examples/declarative/tutorials/extending/chapter2-methods/main.cpp')
-rw-r--r--examples/declarative/tutorials/extending/chapter2-methods/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/tutorials/extending/chapter2-methods/main.cpp b/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
index 8ef6965ea8..a5dbab32d2 100644
--- a/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
+++ b/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
//![0]
-#include "musician.h"
+#include "piechart.h"
#include <qdeclarative.h>
#include <QDeclarativeView>
#include <QApplication>
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- qmlRegisterType<Musician>("Music", 1, 0, "Musician");
+ qmlRegisterType<PieChart>("Charts", 1, 0, "PieChart");
QDeclarativeView view;
view.setSource(QUrl::fromLocalFile("app.qml"));