Skip to content

Commit 9b4e8c0

Browse files
author
wonder
committed
SVG fill widget: don't require user to "activate" the svg item (by double clicking) - apply new fill when current item is changed
git-svn-id: http://svn.osgeo.org/qgis/trunk@13325 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8b2b84f commit 9b4e8c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gui/symbology-ng/qgssymbollayerv2widget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ void QgsSVGFillSymbolLayerWidget::on_mSVGLineEdit_textChanged( const QString & t
628628
emit changed();
629629
}
630630

631-
void QgsSVGFillSymbolLayerWidget::on_mSvgListWidget_itemActivated( QListWidgetItem* item )
631+
void QgsSVGFillSymbolLayerWidget::on_mSvgListWidget_currentItemChanged( QListWidgetItem* item, QListWidgetItem* previous )
632632
{
633633
mSVGLineEdit->setText( item->data( Qt::UserRole ).toString() );
634634
}

src/gui/symbology-ng/qgssymbollayerv2widget.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class GUI_EXPORT QgsSVGFillSymbolLayerWidget : public QgsSymbolLayerV2Widget, pr
242242
void on_mBrowseToolButton_clicked();
243243
void on_mTextureWidthSpinBox_valueChanged( double d );
244244
void on_mSVGLineEdit_textChanged( const QString & text );
245-
void on_mSvgListWidget_itemActivated( QListWidgetItem* item );
245+
void on_mSvgListWidget_currentItemChanged( QListWidgetItem* item, QListWidgetItem* previous );
246246
void on_mChangeOutlinePushButton_clicked();
247247
};
248248

0 commit comments

Comments
 (0)