@@ -16,7 +16,7 @@ class QgsSvgCacheEntry
1616 * @param outline color of outline
1717 * @param lookupKey the key string used in QgsSvgCache for quick lookup of this entry (relative or absolute path)
1818 */
19- QgsSvgCacheEntry ( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFactor, const QColor& fill, const QColor& outline, const QString& lookupKey = QString() );
19+ QgsSvgCacheEntry ( const QString& file, double size, double outlineWidth, double widthScaleFactor, const QColor& fill, const QColor& outline, const QString& lookupKey = QString() );
2020 ~QgsSvgCacheEntry ();
2121
2222 // ! Absolute path to SVG file
@@ -26,7 +26,6 @@ class QgsSvgCacheEntry
2626 double size; // size in pixels (cast to int for QImage)
2727 double outlineWidth;
2828 double widthScaleFactor;
29- double rasterScaleFactor;
3029
3130 /* * SVG viewbox size.
3231 * @note added in QGIS 2.14
@@ -80,7 +79,7 @@ class QgsSvgCache : QObject
8079 * @param fitsInCache
8180 */
8281 QImage svgAsImage ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
83- double widthScaleFactor, double rasterScaleFactor, bool & fitsInCache );
82+ double widthScaleFactor, bool & fitsInCache );
8483 /* * Get SVG as QPicture&.
8584 * @param file Absolute or relative path to SVG file.
8685 * @param size size of cached image
@@ -92,7 +91,7 @@ class QgsSvgCache : QObject
9291 * @param forceVectorOutput
9392 */
9493 QPicture svgAsPicture ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
95- double widthScaleFactor, double rasterScaleFactor, bool forceVectorOutput = false );
94+ double widthScaleFactor, bool forceVectorOutput = false );
9695
9796 /* * Calculates the viewbox size of a (possibly cached) SVG file.
9897 * @param file Absolute or relative path to SVG file.
@@ -106,7 +105,7 @@ class QgsSvgCache : QObject
106105 * @note added in QGIS 2.14
107106 */
108107 QSizeF svgViewboxSize ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
109- double widthScaleFactor, double rasterScaleFactor );
108+ double widthScaleFactor );
110109
111110 /* * Tests if an svg file contains parameters for fill, outline color, outline width. If yes, possible default values are returned. If there are several
112111 default values in the svg file, only the first one is considered*/
@@ -145,7 +144,7 @@ class QgsSvgCache : QObject
145144
146145 /* * Get SVG content*/
147146 QByteArray svgContent ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
148- double widthScaleFactor, double rasterScaleFactor );
147+ double widthScaleFactor );
149148
150149 signals:
151150 /* * Emit a signal to be caught by qgisapp and display a msg on status bar */
@@ -164,14 +163,14 @@ class QgsSvgCache : QObject
164163 * @param rasterScaleFactor raster scale factor
165164 */
166165 QgsSvgCacheEntry* insertSVG ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
167- double widthScaleFactor, double rasterScaleFactor );
166+ double widthScaleFactor );
168167
169168 void replaceParamsAndCacheSvg ( QgsSvgCacheEntry* entry );
170169 void cacheImage ( QgsSvgCacheEntry* entry );
171170 void cachePicture ( QgsSvgCacheEntry* entry, bool forceVectorOutput = false );
172171 /* * Returns entry from cache or creates a new entry if it does not exist already*/
173172 QgsSvgCacheEntry* cacheEntry ( const QString& file, double size, const QColor& fill, const QColor& outline, double outlineWidth,
174- double widthScaleFactor, double rasterScaleFactor );
173+ double widthScaleFactor );
175174
176175 /* * Removes the least used items until the maximum size is under the limit*/
177176 void trimToMaximumSize ();
0 commit comments