Fixes the examples shared macro.
authorCaroline Chao <caroline.chao@digia.com>
Thu, 8 Nov 2012 12:24:20 +0000 (13:24 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 14:43:08 +0000 (15:43 +0100)
Detection of the platform's name Mac was wrong.

Task-number: QTBUG-27894

Change-Id: I3194fac4e78d12682871dec63a905b4c940fb80c
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
examples/shared/shared.h

index bf3857f..e725f81 100644 (file)
@@ -54,7 +54,7 @@
                     qPrintable(QDir::toNativeSeparators(directory.absolutePath())));\
                 return -1;\
             }\
-    } else if (QGuiApplication::platformName() == QLatin1String("Cocoa")) {\
+    } else if (QGuiApplication::platformName() == QLatin1String("cocoa")) {\
         if (directory.absolutePath().endsWith(#NAME".app/Contents/MacOS"))\
             for (int i = 0; i < 3; ++i) {\
                 if (!directory.cdUp()) {\