"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/qgslegendrenderer.cpp" between
QGIS-final-3_10_5.tar.gz and QGIS-final-3_10_6.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgslegendrenderer.cpp  (QGIS-final-3_10_5):qgslegendrenderer.cpp  (QGIS-final-3_10_6)
skipping to change at line 39 skipping to change at line 39
#include <QPainter> #include <QPainter>
QgsLegendRenderer::QgsLegendRenderer( QgsLayerTreeModel *legendModel, const QgsL egendSettings &settings ) QgsLegendRenderer::QgsLegendRenderer( QgsLayerTreeModel *legendModel, const QgsL egendSettings &settings )
: mLegendModel( legendModel ) : mLegendModel( legendModel )
, mSettings( settings ) , mSettings( settings )
{ {
} }
QSizeF QgsLegendRenderer::minimumSize( QgsRenderContext *renderContext ) QSizeF QgsLegendRenderer::minimumSize( QgsRenderContext *renderContext )
{ {
return paintAndDetermineSize( renderContext ); QPainter *prevPainter = renderContext ? renderContext->painter() : nullptr;
if ( renderContext )
renderContext->setPainter( nullptr );
const QSizeF res = paintAndDetermineSize( renderContext );
if ( renderContext )
renderContext->setPainter( prevPainter );
return res;
} }
void QgsLegendRenderer::drawLegend( QPainter *painter ) void QgsLegendRenderer::drawLegend( QPainter *painter )
{ {
paintAndDetermineSize( painter ); paintAndDetermineSize( painter );
} }
void QgsLegendRenderer::exportLegendToJson( const QgsRenderContext &context, QJs onObject &json ) void QgsLegendRenderer::exportLegendToJson( const QgsRenderContext &context, QJs onObject &json )
{ {
QgsLayerTreeGroup *rootGroup = mLegendModel->rootGroup(); QgsLayerTreeGroup *rootGroup = mLegendModel->rootGroup();
 End of changes. 1 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)