From fc8b40f888139342ebe0d4ce7d507005572737db Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Thu, 1 Aug 2013 11:39:02 +0200 Subject: 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 --- .../quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/quick/tutorials/gettingStartedQml/filedialog/dialogPlugin.cpp') 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 +#include 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(uri, 1, 0, "Directory"); - qmlRegisterType(uri,1,0,"File"); + qmlRegisterType(uri, 1, 0, "File"); } -- cgit v1.2.3