[QGIS Commit] r13325 - trunk/qgis/src/gui/symbology-ng

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Apr 18 15:25:20 EDT 2010


Author: wonder
Date: 2010-04-18 15:25:19 -0400 (Sun, 18 Apr 2010)
New Revision: 13325

Modified:
   trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.cpp
   trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.h
Log:
SVG fill widget: don't require user to "activate" the svg item (by double clicking) - apply new fill when current item is changed


Modified: trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.cpp
===================================================================
--- trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.cpp	2010-04-18 19:03:04 UTC (rev 13324)
+++ trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.cpp	2010-04-18 19:25:19 UTC (rev 13325)
@@ -628,7 +628,7 @@
   emit changed();
 }
 
-void QgsSVGFillSymbolLayerWidget::on_mSvgListWidget_itemActivated( QListWidgetItem* item )
+void QgsSVGFillSymbolLayerWidget::on_mSvgListWidget_currentItemChanged( QListWidgetItem* item, QListWidgetItem* previous )
 {
   mSVGLineEdit->setText( item->data( Qt::UserRole ).toString() );
 }

Modified: trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.h
===================================================================
--- trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.h	2010-04-18 19:03:04 UTC (rev 13324)
+++ trunk/qgis/src/gui/symbology-ng/qgssymbollayerv2widget.h	2010-04-18 19:25:19 UTC (rev 13325)
@@ -242,7 +242,7 @@
     void on_mBrowseToolButton_clicked();
     void on_mTextureWidthSpinBox_valueChanged( double d );
     void on_mSVGLineEdit_textChanged( const QString & text );
-    void on_mSvgListWidget_itemActivated( QListWidgetItem* item );
+    void on_mSvgListWidget_currentItemChanged( QListWidgetItem* item, QListWidgetItem* previous );
     void on_mChangeOutlinePushButton_clicked();
 };
 



More information about the QGIS-commit mailing list