Skip to content
Permalink
Browse files

Add a slider for setting the shapeburst fill blur amount

  • Loading branch information
nyalldawson committed Mar 21, 2014
1 parent 1d21beb commit 3adb26acc84ab92f25e4b732f7d17db897208f41
Showing with 25 additions and 23 deletions.
  1. +6 −0 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
  2. +19 −23 src/ui/symbollayer/widget_shapeburstfill.ui
@@ -1027,6 +1027,9 @@ QgsShapeburstFillSymbolLayerV2Widget::QgsShapeburstFillSymbolLayerV2Widget( cons
connect( radioTwoColor, SIGNAL( toggled( bool ) ), this, SLOT( colorModeChanged() ) );
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );
connect( spinOffsetY, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );

connect( mBlurSlider, SIGNAL( valueChanged( int ) ), mSpinBlurRadius, SLOT( setValue( int ) ) );
connect( mSpinBlurRadius, SIGNAL( valueChanged( int ) ), mBlurSlider, SLOT( setValue( int ) ) );
}

void QgsShapeburstFillSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer )
@@ -1056,8 +1059,11 @@ void QgsShapeburstFillSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* lay
}

mSpinBlurRadius->blockSignals( true );
mBlurSlider->blockSignals( true );
mSpinBlurRadius->setValue( mLayer->blurRadius() );
mBlurSlider->setValue( mLayer->blurRadius() );
mSpinBlurRadius->blockSignals( false );
mBlurSlider->blockSignals( false );

mSpinMaxDistance->blockSignals( true );
mSpinMaxDistance->setValue( mLayer->maxDistance() );
@@ -90,16 +90,6 @@
<widget class="QgsColorRampComboBox" name="cboGradientColorRamp"/>
</item>
</layout>
<zorder>btnChangeColor2</zorder>
<zorder>btnChangeColor</zorder>
<zorder>cboGradientColorRamp</zorder>
<zorder>radioTwoColor</zorder>
<zorder>radioColorRamp</zorder>
<zorder>radioTwoColor</zorder>
<zorder>radioColorRamp</zorder>
<zorder>btnChangeColor</zorder>
<zorder>btnChangeColor2</zorder>
<zorder>cboGradientColorRamp</zorder>
</widget>
</item>
<item row="1" column="0" colspan="2">
@@ -171,6 +161,25 @@
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QSlider" name="mBlurSlider">
<property name="maximum">
<number>18</number>
</property>
<property name="pageStep">
<number>3</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBelow</enum>
</property>
<property name="tickInterval">
<number>1</number>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="mSpinBlurRadius">
<property name="sizePolicy">
@@ -184,19 +193,6 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="3" column="0">

0 comments on commit 3adb26a

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