Replace qVariantValue() with qvariant_cast().

qVariantvalue() is deprecated in Qt 5. qvariant_cast() does
the same thing and works in Qt 4 and Qt 5.

Change-Id: I922329d3a47fe394669f5d97a25f0825d3d2dea5
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kandeler
2012-09-18 17:18:37 +02:00
committed by hjk
parent 5f6f880a32
commit 1b3d637c1b
10 changed files with 16 additions and 16 deletions

View File

@@ -393,7 +393,7 @@ QFont HelpViewer::viewerFont() const
QFont font(QApplication::font().family(),
webSettings->fontSize(QWebSettings::DefaultFontSize));
const QHelpEngineCore &engine = LocalHelpManager::helpEngine();
return qVariantValue<QFont>(engine.customValue(QLatin1String("font"),
return qvariant_cast<QFont>(engine.customValue(QLatin1String("font"),
font));
}