Commit 004f6741 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Use proper qvariant cast

parent d700bc62
......@@ -609,7 +609,7 @@ bool Converter::convertImage( const QDomElement &element )
if ( href.startsWith( QLatin1Char('#') ) )
href = href.mid( 1 );
const QImage img = qVariantValue<QImage>( mTextDocument->resource( QTextDocument::ImageResource, QUrl( href ) ) );
const QImage img = qvariant_cast<QImage>( mTextDocument->resource( QTextDocument::ImageResource, QUrl( href ) ) );
QTextImageFormat format;
format.setName( href );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment