Skip to content

Commit 59f418b

Browse files
committed
Revert "Fix doxygen warning"
This reverts commit 9e1a235.
1 parent 9e1a235 commit 59f418b

File tree

3 files changed

+4
-51
lines changed

3 files changed

+4
-51
lines changed

python/core/qgsexpressioncontext.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class QgsExpressionContext
392392
static const QString EXPR_FIELDS;
393393
//! Inbuilt variable name for feature storage
394394
static const QString EXPR_FEATURE;
395-
//! Inbuilt variable name for value original value variable
395+
//! Inbuilt variable name for @value original value variable
396396
static const QString EXPR_ORIGINAL_VALUE;
397397
//! Inbuilt variable name for symbol color variable
398398
static const QString EXPR_SYMBOL_COLOR;

src/core/qgsexpressioncontext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class CORE_EXPORT QgsExpressionContext
427427
static const QString EXPR_FIELDS;
428428
//! Inbuilt variable name for feature storage
429429
static const QString EXPR_FEATURE;
430-
//! Inbuilt variable name for value original value variable
430+
//! Inbuilt variable name for @value original value variable
431431
static const QString EXPR_ORIGINAL_VALUE;
432432
//! Inbuilt variable name for symbol color variable
433433
static const QString EXPR_SYMBOL_COLOR;

tests/src/core/testqgsmaprenderer.cpp

+2-49
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include <qgsapplication.h>
3939
#include <qgsproviderregistry.h>
4040
#include <qgsmaplayerregistry.h>
41-
#include "qgssinglesymbolrendererv2.h"
4241

4342
//qgs unit test utility class
4443
#include "qgsrenderchecker.h"
@@ -55,9 +54,8 @@ class TestQgsMapRenderer : public QObject
5554
public:
5655
TestQgsMapRenderer()
5756
: mError( QgsVectorFileWriter::NoError )
58-
, mMapSettings( nullptr )
59-
, mpPolysLayer( nullptr )
60-
, mPointsLayer( nullptr )
57+
, mMapSettings( 0 )
58+
, mpPolysLayer( 0 )
6159
{
6260
}
6361

@@ -81,18 +79,14 @@ class TestQgsMapRenderer : public QObject
8179
void testFourAdjacentTiles_data();
8280
void testFourAdjacentTiles();
8381

84-
void testSymbolsOnEdgeOfExtent(); //tests that large symbols just outside the extent will be shown
85-
8682
private:
8783
QString mEncoding;
8884
QgsVectorFileWriter::WriterError mError;
8985
QgsCoordinateReferenceSystem mCRS;
9086
QgsFields mFields;
9187
QgsMapSettings *mMapSettings;
9288
QgsMapLayer * mpPolysLayer;
93-
QgsVectorLayer* mPointsLayer;
9489
QString mReport;
95-
bool imageCheck(QgsMapSettings mapSettings, const QString& theTestType);
9690
};
9791

9892

@@ -189,14 +183,6 @@ void TestQgsMapRenderer::initTestCase()
189183
mpPolysLayer = new QgsVectorLayer( myPolyFileInfo.filePath(),
190184
myPolyFileInfo.completeBaseName(), "ogr" );
191185
QVERIFY( mpPolysLayer->isValid() );
192-
193-
194-
QString pointFileName = myTestDataDir + "regular_points.geojson";
195-
QFileInfo pointFileInfo( pointFileName );
196-
mPointsLayer = new QgsVectorLayer( pointFileInfo.filePath(),
197-
pointFileInfo.completeBaseName(), "ogr" );
198-
QVERIFY( mPointsLayer->isValid() );
199-
200186
// Register the layer with the registry
201187
QgsMapLayerRegistry::instance()->addMapLayers( QList<QgsMapLayer *>() << mpPolysLayer );
202188
// add the test layer to the maprender
@@ -346,39 +332,6 @@ void TestQgsMapRenderer::testFourAdjacentTiles()
346332
QVERIFY( result );
347333
}
348334

349-
void TestQgsMapRenderer::testSymbolsOnEdgeOfExtent()
350-
{
351-
mReport += "<h2>Large symbols on edge of extent</h2>\n";
352-
353-
QgsMapSettings ms;
354-
ms.setLayers( QStringList() << mPointsLayer->id() );
355-
ms.setExtent( mPointsLayer->extent() );
356-
mMapSettings->setDestinationCrs( QgsCoordinateReferenceSystem( "EPSG:3005" ) );
357-
358-
// ms.setExtent( QgsRectangle ( 778780, 965073, 780900, 970333 ) );
359-
360-
//BIG symbol
361-
QgsStringMap properties;
362-
properties.insert( "color", "0,0,0,255" );
363-
properties.insert( "name", "circle" );
364-
properties.insert( "size", "20.0" );
365-
properties.insert( "outline_style", "no" );
366-
QgsMarkerSymbolV2* pointSymbol = QgsMarkerSymbolV2::createSimple( properties );
367-
mPointsLayer->setRendererV2( new QgsSingleSymbolRendererV2( pointSymbol ) );
368-
369-
QVERIFY( imageCheck( ms, "singlesymbol_orderby" ) );
370-
}
371-
372-
bool TestQgsMapRenderer::imageCheck( QgsMapSettings mapSettings, const QString& theTestType )
373-
{
374-
mapSettings.setOutputDpi( 96 );
375-
QgsRenderChecker myChecker;
376-
myChecker.setControlName( "expected_" + theTestType );
377-
myChecker.setMapSettings( mapSettings );
378-
bool myResultFlag = myChecker.runTest( theTestType, 30 );
379-
mReport += myChecker.report();
380-
return myResultFlag;
381-
}
382335

383336
QTEST_MAIN( TestQgsMapRenderer )
384337
#include "testqgsmaprenderer.moc"

0 commit comments

Comments
 (0)