Use FileInfoList instead of QList<FileInfo>