Determine default application using QMimeType

Qt 5 provides support for mimetypes, use its new API to determine the
default application for Qt 5 builds.