diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-15 03:00:45 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-07-15 05:41:06 (GMT) |
commit | b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3 (patch) | |
tree | fb83edea4a5f6fb9952c312c8b3ea81acefc286e /examples/declarative/tutorials/extending/chapter2-methods/main.cpp | |
parent | 8ed72a96bc5c3af283f8ca4460adae9d4b466479 (diff) | |
download | Qt-b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3.zip Qt-b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3.tar.gz Qt-b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3.tar.bz2 |
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.cpp | 4 |
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 8ef6965..a5dbab3 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")); |