diff options
author | Topi Reinio <topi.reinio@digia.com> | 2013-08-01 11:39:02 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-09 15:47:23 +0200 |
commit | fc8b40f888139342ebe0d4ce7d507005572737db (patch) | |
tree | e90b81b9922fcb1b615d131a487c282cc3a45841 /examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp | |
parent | 04f699d26a3f06dbd98d9bd3e0f64ee9980a6a26 (diff) | |
download | qtdeclarative-fc8b40f888139342ebe0d4ce7d507005572737db.tar.gz |
Doc: Update example used for QML getting started tutorial
Update the example project referred to in Getting Started with Qt
Quick tutorial.
- Fix coding/comment style issues
- Change plugin TARGET name, Use /imports as the
destination directory
- Fix qmldir with proper module info, delete unused
qmldir from /core
- Add a .qmlproject file
Change-Id: If269e61fb76399faae753469dc251d07cc219139
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp')
-rw-r--r-- | examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp b/examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp index 7076f2c19c..b1ba601df3 100644 --- a/examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp +++ b/examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp @@ -41,11 +41,12 @@ #include "dialogPlugin.h" #include "directory.h" #include "file.h" -#include <QtQml/qqml.h> +#include <QtQml> void DialogPlugin::registerTypes(const char *uri) { - //register the class Directory into QML as a "Directory" element version 1.0 + // Register the class Directory into QML as a "Directory" type version 1.0 + // @uri FileDialog qmlRegisterType<Directory>(uri, 1, 0, "Directory"); - qmlRegisterType<File>(uri,1,0,"File"); + qmlRegisterType<File>(uri, 1, 0, "File"); } |