From d9956871a33bb6d2c21a5018afe21b3a33cc1525 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 6 Aug 2013 15:04:35 +0200 Subject: [PATCH] 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 --- examples/quick/shared/shared.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index c59e858..648b294 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")); \ -- 2.7.4