diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-08-06 15:04:35 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-15 14:12:42 +0200 |
commit | d9956871a33bb6d2c21a5018afe21b3a33cc1525 (patch) | |
tree | 4c1ed90dd6a90ec258c8c33e6e2df6600f83d13a /examples/quick/shared | |
parent | aeac974b8361e9f92684a0f7cb7e38f4763bb7f1 (diff) |
examples: set application name and organization for QSettings
With the Qt.labs.settings module available, it makes sense for each
example to have its own settings file.
Change-Id: I8257f04ec13c7caf9995e03626e5453c653cfb92
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'examples/quick/shared')
-rw-r--r-- | examples/quick/shared/shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index c59e858d47..648b2944b7 100644 --- a/examples/quick/shared/shared.h +++ b/examples/quick/shared/shared.h @@ -44,6 +44,9 @@ #define DECLARATIVE_EXAMPLE_MAIN(NAME) int main(int argc, char* argv[]) \ {\ QGuiApplication app(argc,argv);\ + app.setOrganizationName("Qt Project");\ + app.setOrganizationDomain("qt-project.org");\ + app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName());\ QQuickView view;\ view.connect(view.engine(), SIGNAL(quit()), &app, SLOT(quit()));\ view.setSource(QUrl("qrc:///" #NAME ".qml")); \ |