Also registry HTML annotation when webkit isn't available

This commit is contained in:
Nyall Dawson 2017-01-30 19:19:24 +10:00
parent 6bffa17cc2
commit f80b92a23f

View File

@ -88,9 +88,7 @@ class CORE_EXPORT QgsAnnotationRegistry
QgsAnnotationRegistry()
{
addAnnotationType( QgsAnnotationMetadata( QStringLiteral( "TextAnnotationItem" ), QgsTextAnnotation::create ) );
#ifdef WITH_QTWEBKIT
addAnnotationType( QgsAnnotationMetadata( QStringLiteral( "HtmlAnnotationItem" ), QgsHtmlAnnotation::create ) );
#endif
addAnnotationType( QgsAnnotationMetadata( QStringLiteral( "SVGAnnotationItem" ), QgsSvgAnnotation::create ) );
}