diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-15 13:00:45 +1000 |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-07-15 15:41:06 +1000 |
commit | b78e46817e5e2d9bd6a8d83b1447a6c4e941a5b3 (patch) | |
tree | fb83edea4a5f6fb9952c312c8b3ea81acefc286e /examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp | |
parent | 8ed72a96bc5c3af283f8ca4460adae9d4b466479 (diff) | |
download | qt4-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/chapter4-customPropertyTypes/main.cpp')
-rw-r--r-- | examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp b/examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp index d94cb036cb..fd518a255a 100644 --- a/examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp +++ b/examples/declarative/tutorials/extending/chapter4-customPropertyTypes/main.cpp @@ -37,8 +37,8 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -#include "musician.h" -#include "instrument.h" +#include "piechart.h" +#include "pieslice.h" #include <qdeclarative.h> #include <QDeclarativeView> @@ -50,10 +50,10 @@ int main(int argc, char *argv[]) //![0] QApplication app(argc, argv); - qmlRegisterType<Musician>("Music", 1, 0, "Musician"); + qmlRegisterType<PieChart>("Charts", 1, 0, "PieChart"); //![1] - qmlRegisterType<Instrument>("Music", 1, 0, "Instrument"); + qmlRegisterType<PieSlice>("Charts", 1, 0, "PieSlice"); //![1] QDeclarativeView view; |