summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2014-05-02 07:26:25 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-02 21:15:30 (GMT)
commit4c45b6ca8ae38f56efab881f3c996a8a89edbd08 (patch)
treeb9b3cfa02e3a24e15a624048b612ada7ac4dd9df /src/corelib/statemachine
parent136ab6592f8034e3954fb8842ed6e2f40cee2b86 (diff)
downloadQt-4c45b6ca8ae38f56efab881f3c996a8a89edbd08.zip
Qt-4c45b6ca8ae38f56efab881f3c996a8a89edbd08.tar.gz
Qt-4c45b6ca8ae38f56efab881f3c996a8a89edbd08.tar.bz2
Refactor OS X bundle detection for QFileInfo
CFBundleGetPackageInfoInDirectory originally used tests for the presence of information that are not mandatory in a bundle. Following Apple's documentation, the new approach is to use Uniform Type Identifier which queries the OS directly to check whether the extension conforms to kUTTypeBundle. That includes e.g. applications, frameworks etc. Then it tries to determine if the bundle can be opened with an application that is not Finder. Last thing, it checks whether the package bit is set. (cherry picked from qtbase/72d60ea08c14037250459a5424ffee7a36b909b1) (cherry picked from qtbase/bcfc68f9cd00982decd7ceb312966caf6b1ca05e) (cherry picked from qtbase/afacf694d5a6f34b88989e76971d70d700ce4949) Task-number: QTBUG-31884 Change-Id: I4ce3d8b90d116960b2044d3fafe3f745f6141416 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/statemachine')
0 files changed, 0 insertions, 0 deletions