Prefer organizationDomain or CFBundleIdentifier for settings file
authorChris Meyer <cmeyer1969@gmail.com>
Wed, 9 Nov 2011 18:44:32 +0000 (10:44 -0800)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 Nov 2011 09:58:10 +0000 (10:58 +0100)
commit9a8a70d8e42f7e8fee8398affa5680adb2ba24d6
tree2b6faa6876a78f8326a55c0d5edbbf325eea38ae
parent12ebdd9f9e1b27e322259afc058621b39c17c485
Prefer organizationDomain or CFBundleIdentifier for settings file

Watch for attempts to write to "Trolltech" preferences and use
QCoreApplication::organizationDomain() instead. If that doesn't exist,
then fall back to CFBundleIdentifier if possible. If that doesn't
exist, then follow the old code path and use the hardcoded string.

This change eliminates extra files being created which helps Mac app
store acceptance.

Change-Id: I1ba3984b46cf3888f371d87f6ad8ea6c2f26d2ec
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/corelib/io/qsettings_mac.cpp