@@ -101,12 +101,12 @@ void TestQgsMapRotation::initTestCase()
101
101
mapLayers << mLinesLayer ;
102
102
103
103
// Register all layers with the registry
104
- QgsMapLayerRegistry::instance ()->addMapLayers (mapLayers);
104
+ QgsMapLayerRegistry::instance ()->addMapLayers ( mapLayers );
105
105
106
106
// This is needed to correctly set rotation center,
107
107
// the actual size doesn't matter as QgsRenderChecker will
108
108
// re-set it to the size of the expected image
109
- mMapSettings .setOutputSize ( QSize (256 ,256 ) );
109
+ mMapSettings .setOutputSize ( QSize ( 256 , 256 ) );
110
110
111
111
mReport += " <h1>Map Rotation Tests</h1>\n " ;
112
112
}
@@ -150,7 +150,7 @@ void TestQgsMapRotation::pointsLayer()
150
150
bool success = false ;
151
151
mPointsLayer ->loadNamedStyle ( qml, success );
152
152
QVERIFY ( success );
153
- mMapSettings .setExtent ( QgsRectangle (-105.5 ,37 ,-97.5 ,45 ) );
153
+ mMapSettings .setExtent ( QgsRectangle ( -105.5 , 37 , -97.5 , 45 ) );
154
154
mMapSettings .setRotation ( -60 );
155
155
QVERIFY ( render ( " svgpoints-60" ) );
156
156
@@ -159,7 +159,7 @@ void TestQgsMapRotation::pointsLayer()
159
159
success = false ;
160
160
mPointsLayer ->loadNamedStyle ( qml, success );
161
161
QVERIFY ( success );
162
- mMapSettings .setExtent ( QgsRectangle (-116 ,33 ,-107 ,42 ) );
162
+ mMapSettings .setExtent ( QgsRectangle ( -116 , 33 , -107 , 42 ) );
163
163
mMapSettings .setRotation ( 90 );
164
164
QVERIFY ( render ( " svgpoints-datadefined+90" ) );
165
165
@@ -170,7 +170,7 @@ void TestQgsMapRotation::pointsLayer()
170
170
success = false ;
171
171
mPointsLayer ->loadNamedStyle ( qml, success );
172
172
QVERIFY ( success );
173
- mMapSettings .setExtent ( QgsRectangle (-116 ,33 ,-107 ,42 ) );
173
+ mMapSettings .setExtent ( QgsRectangle ( -116 , 33 , -107 , 42 ) );
174
174
mMapSettings .setRotation ( 90 );
175
175
QVERIFY ( render ( " simplepoints-datadefined+90" ) );
176
176
@@ -179,7 +179,7 @@ void TestQgsMapRotation::pointsLayer()
179
179
success = false ;
180
180
mPointsLayer ->loadNamedStyle ( qml, success );
181
181
QVERIFY ( success );
182
- mMapSettings .setExtent ( QgsRectangle (-108 ,26 ,-100 ,34 ) );
182
+ mMapSettings .setExtent ( QgsRectangle ( -108 , 26 , -100 , 34 ) );
183
183
mMapSettings .setRotation ( 30 );
184
184
QVERIFY ( render ( " simplepoints+30" ) );
185
185
@@ -207,7 +207,7 @@ bool TestQgsMapRotation::render( QString theTestType )
207
207
{
208
208
mReport += " <h2>" + theTestType + " </h2>\n " ;
209
209
QgsRenderChecker checker;
210
- checker.setControlPathPrefix (" maprotation" );
210
+ checker.setControlPathPrefix ( " maprotation" );
211
211
checker.setControlName ( " expected_" + theTestType );
212
212
checker.setMapSettings ( mMapSettings );
213
213
bool result = checker.runTest ( theTestType );
0 commit comments