summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:14:11 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:14:11 (GMT)
commit004f67410ddc23d5e1e36d7a09fa872b5497b9d4 (patch)
tree770ea87a467bd3bc94b20255cf1dd87f22648c88
parentd700bc626eb893c896d43be3566dbcd13478a937 (diff)
Use proper qvariant cast
-rw-r--r--generators/fictionbook/converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/fictionbook/converter.cpp b/generators/fictionbook/converter.cpp
index 32ccd55..ce6d494 100644
--- a/generators/fictionbook/converter.cpp
+++ b/generators/fictionbook/converter.cpp
@@ -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 );