Skip to content
Permalink
Browse files

reactivate field when dd buton is deactivated

  • Loading branch information
vmora authored and nyalldawson committed Jun 24, 2015
1 parent d4badf8 commit 2e3578176415ad5cfca1e33168386fdcfb0bebe8
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/symbology-ng/qgssymbolslistwidget.cpp
@@ -218,6 +218,8 @@ void QgsSymbolsListWidget::updateDataDefinedMarkerAngle()
QgsMarkerSymbolV2* markerSymbol = static_cast<QgsMarkerSymbolV2*>( mSymbol );
QgsDataDefined dd = mRotationDDBtn->currentDataDefined();

spinAngle->setEnabled( !mRotationDDBtn->isActive() );

bool isDefault = dd.hasDefaultValues();

if ( // shall we remove datadefined expressions for layers ?
@@ -244,6 +246,8 @@ void QgsSymbolsListWidget::updateDataDefinedMarkerSize()
QgsMarkerSymbolV2* markerSymbol = static_cast<QgsMarkerSymbolV2*>( mSymbol );
QgsDataDefined dd = mSizeDDBtn->currentDataDefined();

spinSize->setEnabled( !mSizeDDBtn->isActive() );

bool isDefault = dd.hasDefaultValues();

if ( // shall we remove datadefined expressions for layers ?
@@ -270,6 +274,8 @@ void QgsSymbolsListWidget::updateDataDefinedLineWidth()
QgsLineSymbolV2* lineSymbol = static_cast<QgsLineSymbolV2*>( mSymbol );
QgsDataDefined dd = mWidthDDBtn->currentDataDefined();

spinWidth->setEnabled( !mWidthDDBtn->isActive() );

bool isDefault = dd.hasDefaultValues();

if ( // shall we remove datadefined expressions for layers ?

0 comments on commit 2e35781

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