Skip to content
Permalink
Browse files

More test updates

  • Loading branch information
nyalldawson committed Jul 8, 2020
1 parent 48c322e commit fd1555dda1c440f02adf8a73f3daf546b0d88e08
@@ -34,6 +34,7 @@
#include "qgspallabeling.h"
#include "qgsvectorlayerlabeling.h"
#include "qgstemporalrangeobject.h"
#include "qgsfontutils.h"

#include <QObject>
#include "qgstest.h"
@@ -86,6 +87,8 @@ void TestQgsLayoutMap::initTestCase()
QgsApplication::init();
QgsApplication::initQgis();

QgsFontUtils::loadStandardTestFonts( QStringList() << QStringLiteral( "Bold" ) );

//create maplayers from testdata and add to layer registry
QFileInfo rasterFileInfo( QStringLiteral( TEST_DATA_DIR ) + "/landsat.tif" );
mRasterLayer = new QgsRasterLayer( rasterFileInfo.filePath(),
@@ -553,6 +556,7 @@ void TestQgsLayoutMap::rasterized()
QgsLayoutItemMapGrid *grid = new QgsLayoutItemMapGrid( "test", map );
grid->setIntervalX( 10 );
grid->setIntervalY( 10 );
grid->setAnnotationTextFormat( QgsTextFormat::fromQFont( QgsFontUtils::getStandardTestFont( QStringLiteral( "Bold" ) ) ) );
grid->setBlendMode( QPainter::CompositionMode_Darken );
grid->setAnnotationEnabled( true );
grid->setAnnotationDisplay( QgsLayoutItemMapGrid::ShowAll, QgsLayoutItemMapGrid::Left );
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit fd1555d

Please sign in to comment.
You can’t perform that action at this time.