Use QMimeDatabase on Qt >= 5