Skip to content

Commit

Permalink
Use QgsAbstractContentCache base class for QgsSvgCache
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and nirvn committed Dec 5, 2018
1 parent 22496dc commit cdba8f5
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 417 deletions.
16 changes: 11 additions & 5 deletions python/core/auto_generated/symbology/qgssvgcache.sip.in
Expand Up @@ -12,7 +12,7 @@






class QgsSvgCache : QObject class QgsSvgCache : QgsAbstractContentCacheBase
{ {
%Docstring %Docstring
A cache for images / pictures derived from svg files. This class supports parameter replacement in svg files A cache for images / pictures derived from svg files. This class supports parameter replacement in svg files
Expand All @@ -33,8 +33,6 @@ QgsSvgCache is not usually directly created, but rather accessed through
Constructor for QgsSvgCache. Constructor for QgsSvgCache.
%End %End


~QgsSvgCache();

QImage svgAsImage( const QString &path, double size, const QColor &fill, const QColor &stroke, double strokeWidth, QImage svgAsImage( const QString &path, double size, const QColor &fill, const QColor &stroke, double strokeWidth,
double widthScaleFactor, bool &fitsInCache, double fixedAspectRatio = 0 ); double widthScaleFactor, bool &fitsInCache, double fixedAspectRatio = 0 );
%Docstring %Docstring
Expand Down Expand Up @@ -135,9 +133,12 @@ Gets SVG content
%End %End


signals: signals:
void statusChanged( const QString &statusQString );
void statusChanged( const QString &statusQString ) /Deprecated/;
%Docstring %Docstring
Emit a signal to be caught by qgisapp and display a msg on status bar Emit a signal to be caught by qgisapp and display a msg on status bar.

.. deprecated:: Deprecated since QGIS 3.6 -- no longer emitted.
%End %End


void remoteSvgFetched( const QString &url ); void remoteSvgFetched( const QString &url );
Expand All @@ -147,6 +148,11 @@ Emitted when the cache has finished retrieving an SVG file from a remote ``url``
.. versionadded:: 3.2 .. versionadded:: 3.2
%End %End


protected:

virtual bool checkReply( QNetworkReply *reply, const QString &path ) const;


}; };


/************************************************************************ /************************************************************************
Expand Down

0 comments on commit cdba8f5

Please sign in to comment.