Skip to content
Permalink
Browse files

fix symbol selection

git-svn-id: http://svn.osgeo.org/qgis/trunk@14478 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 1, 2010
1 parent 675a3a5 commit 5ec236c4d9e6b4143404d445ba5309feb8f9ec00
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/qgssinglesymboldialog.cpp
@@ -108,8 +108,6 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
connect( btnFillColor, SIGNAL( clicked() ), this, SLOT( selectFillColor() ) );
connect( outlinewidthspinbox, SIGNAL( valueChanged( double ) ), this, SLOT( resendSettingsChanged() ) );
connect( mLabelEdit, SIGNAL( textChanged( const QString& ) ), this, SLOT( resendSettingsChanged() ) );
connect( lstSymbols, SIGNAL( currentChanged( const QModelIndex & , const QModelIndex & ) ),
this, SLOT( symbolChanged( const QModelIndex & , const QModelIndex & ) ) );
connect( mPointSizeSpinBox, SIGNAL( valueChanged( double ) ), this, SLOT( resendSettingsChanged() ) );
connect( mPointSizeUnitsCheckBox, SIGNAL( toggled( bool ) ), this, SLOT( resendSettingsChanged() ) );
connect( mRotationClassificationComboBox, SIGNAL( currentIndexChanged( const QString & ) ),
@@ -135,6 +133,9 @@ void QgsSingleSymbolDialog::refreshMarkers()
QgsMarkerListModel *m = new QgsMarkerListModel( lstSymbols );
lstSymbols->setModel( m );

connect( lstSymbols->selectionModel(), SIGNAL( currentChanged( const QModelIndex &, const QModelIndex & ) ),
this, SLOT( symbolChanged( const QModelIndex &, const QModelIndex & ) ) );

// Find out the numerical fields of mVectorLayer, and populate the ComboBoxes
QgsVectorDataProvider *provider = mVectorLayer->dataProvider();
if ( provider )
@@ -639,7 +640,7 @@ void QgsSingleSymbolDialog::symbolChanged( const QModelIndex &current, const QMo
QAbstractItemModel *m = lstSymbols->model();
QgsDebugMsg( QString( "symbol changed to %1:%2" ).arg( current.row() ).arg( m->data( current, Qt::UserRole ).toString() ) );
// m->setData( current, Qt::UserRole+1, Qt::cyan );
// m->setData( prev, Qt::UserRole+1, Qt::white );
// m->setData( previous, Qt::UserRole+1, Qt::white );
emit settingsChanged();
}

0 comments on commit 5ec236c

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