"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/symbology/qgssymbolselectordialog.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).

qgssymbolselectordialog.cpp  (QGIS-final-3_10_5):qgssymbolselectordialog.cpp  (QGIS-final-3_10_6)
skipping to change at line 388 skipping to change at line 388
updatePreview(); updatePreview();
} }
QgsSymbolWidgetContext QgsSymbolSelectorWidget::context() const QgsSymbolWidgetContext QgsSymbolSelectorWidget::context() const
{ {
return mContext; return mContext;
} }
void QgsSymbolSelectorWidget::loadSymbol( QgsSymbol *symbol, SymbolLayerItem *pa rent ) void QgsSymbolSelectorWidget::loadSymbol( QgsSymbol *symbol, SymbolLayerItem *pa rent )
{ {
if ( !symbol )
return;
if ( !parent ) if ( !parent )
{ {
mSymbol = symbol; mSymbol = symbol;
model->clear(); model->clear();
parent = static_cast<SymbolLayerItem *>( model->invisibleRootItem() ); parent = static_cast<SymbolLayerItem *>( model->invisibleRootItem() );
} }
SymbolLayerItem *symbolItem = new SymbolLayerItem( symbol ); SymbolLayerItem *symbolItem = new SymbolLayerItem( symbol );
QFont boldFont = symbolItem->font(); QFont boldFont = symbolItem->font();
boldFont.setBold( true ); boldFont.setBold( true );
skipping to change at line 451 skipping to change at line 454
btnUp->setEnabled( currentRow > 0 ); btnUp->setEnabled( currentRow > 0 );
btnDown->setEnabled( currentRow < rowCount - 1 ); btnDown->setEnabled( currentRow < rowCount - 1 );
btnRemoveLayer->setEnabled( rowCount > 1 ); btnRemoveLayer->setEnabled( rowCount > 1 );
btnLock->setEnabled( true ); btnLock->setEnabled( true );
btnDuplicate->setEnabled( true ); btnDuplicate->setEnabled( true );
} }
void QgsSymbolSelectorWidget::updatePreview() void QgsSymbolSelectorWidget::updatePreview()
{ {
if ( !mSymbol )
return;
std::unique_ptr< QgsSymbol > symbolClone( mSymbol->clone() ); std::unique_ptr< QgsSymbol > symbolClone( mSymbol->clone() );
QImage preview = symbolClone->bigSymbolPreviewImage( &mPreviewExpressionContex t ); QImage preview = symbolClone->bigSymbolPreviewImage( &mPreviewExpressionContex t );
lblPreview->setPixmap( QPixmap::fromImage( preview ) ); lblPreview->setPixmap( QPixmap::fromImage( preview ) );
// Hope this is a appropriate place // Hope this is a appropriate place
if ( !mBlockModified ) if ( !mBlockModified )
emit symbolModified(); emit symbolModified();
} }
void QgsSymbolSelectorWidget::updateLayerPreview() void QgsSymbolSelectorWidget::updateLayerPreview()
{ {
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

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