Isolate the default cache directory


Instead of having it in several random places, have a central function
that contains all the cache directory selection logic.

As per QtCore docs GenericCacheLocation can be empty so introduce a fallback
to CacheLocation (the app-specific, non-shared location) in case some
future platform does not support the former.

Task-number: QTBUG-41187
Change-Id: Icfe5e8926e917483ac11844f625244318ff815c7
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
commita99b8ced41b2c634598ce70fe69036a0ed34e9ba
parentd1964046bc55e5b4d99a509c6329f549c47d3f77
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>
commit timeTue, 15 Sep 2015 14:44:40 +0000