Extend JSON QStandardPaths to support multiple paths per location
authorJeremy Katz <jeremy.katz@nokia.com>
Thu, 17 May 2012 14:37:43 +0000 (16:37 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 14 Jun 2012 10:20:51 +0000 (12:20 +0200)
commitcd89b164a56fea54aec3cb348923af2bde4d3425
treebf151f5a4d9e86f968572dd5b8da69d8a1b8c72e
parenta85d15259ce2ce9371ad832bdd7becf256362c20
Extend JSON QStandardPaths to support multiple paths per location

Allow a location to be specified as an array of paths.
    LOCATION: ["first", "second"]

The first value is selected for writableLocation().

Define the first entry as an empty string for no writable path.
    LOCATION: ["", "second"]

A single path may be expressed as a string.
    LOCATION: "only"

Change-Id: I897cf40a039ad7cb680bdf643bfa78020e8eb1cb
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qstandardpaths_json.cpp