Assistant: Fix opening image links


When clicking on links that point directly to images like in some
example documentation pages, the image data was set as html onto the
browser and it would display some "unknown character" symbols.

Check the MIME type of the URL's file name and if it is a supported image
type show custom html with an img tag that points to that image. That
way the image is nicely shown in the browser.

Task-number: QTCREATORBUG-31339
Pick-to: 6.12
Change-Id: I0e6604d847409280a092eacf93bbba808d6e6a1e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
commit2e552879ae34398dea60f211582f6d799811f735
parent4c3368ffcd8510276b6ca41166bc04c243eef6ef
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeTue, 29 Sep 2026 06:53:08 +0000