[Kde-games-devel] KMahjongg frameworks branch
Ian Wadham
iandw.au at gmail.com
Thu Dec 3 06:41:34 UTC 2015
Hi Frederik,
On 03/12/2015, at 3:14 PM, Frederik Schwarzer wrote:
>> But as I scrolled down the page a bit more, I probably found the
>> solution. One has to locate the folders and the foreach over them to
>> get the files. I will try that tomorrow.
>
> Sometimes it gives you an advantage to also read the texts between the
> code snippets. That way you can find information like: "When the code
> uses wildcard filters or the Recursive flag in findAllResources, you
> cannot port it to one line of QStandardPaths." and save yourself a lot
> of trial&error trouble. :)
Actually it seems you need two nested loops: one to scan the list of
dirs found by QSP (usually, but not necessarily, installed data-dir and
user's home-area data-dir) and another to scan file names in each dir.
Apple has three dirs where app data files might be stored.
Cheers, Ian W.
More information about the kde-games-devel
mailing list