File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ void QgsRenderChecker::setControlName( const QString &theName )
57
57
mExpectedImageFile = controlImagePath () + theName + ' /' + mControlPathSuffix + theName + " .png" ;
58
58
}
59
59
60
+ void QgsRenderChecker::setControlPathSuffix ( const QString& theName )
61
+ {
62
+ if ( !theName.isEmpty () )
63
+ mControlPathSuffix = theName + ' /' ;
64
+ else
65
+ mControlPathSuffix .clear ();
66
+ }
67
+
60
68
QString QgsRenderChecker::imageToHash ( const QString& theImageFile )
61
69
{
62
70
QImage myImage;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class CORE_EXPORT QgsRenderChecker
69
69
*/
70
70
void setControlPathPrefix ( const QString &theName ) { mControlPathPrefix = theName + ' /' ; }
71
71
72
- void setControlPathSuffix ( const QString& theName ) { mControlPathSuffix = theName + ' / ' ; }
72
+ void setControlPathSuffix ( const QString& theName );
73
73
74
74
/* * Get an md5 hash that uniquely identifies an image */
75
75
QString imageToHash ( const QString& theImageFile );
You can’t perform that action at this time.
0 commit comments