Only use .xml and .theme files for highlighting and themes

Review Request #129795 - Created Jan. 8, 2017 and submitted

Dominik Haumann
kate, kdeframeworks
cullmann, vkrause

Currently, the QDirIterator lists all files when searching for highlighting files and theme files.
This for instance also includes backups (.xml~) and similar files, which is obviously wrong.

This patch fixes this by searching only for .xml files and .theme files.

Compiles, unit tests still run.

Volker Krause
Dominik Haumann
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 8c39a258d627e7444343e337825aad494154bebf by Dominik Haumann to branch master.