Skip to content
Permalink
Browse files

Followup b2ca7f, fix bad merge

  • Loading branch information
nyalldawson committed Apr 22, 2015
1 parent deba02f commit 95a7fbc89265892c05847760b50da0d32ea09a46
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/qgsdiagramproperties.cpp
@@ -160,6 +160,12 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* pare
const QgsFields& layerFields = layer->pendingFields();
for ( int idx = 0; idx < layerFields.count(); ++idx )
{
QTreeWidgetItem *newItem = new QTreeWidgetItem( mAttributesTreeWidget );
QString name = QString( "\"%1\"" ).arg( layerFields[idx].name() );
newItem->setText( 0, name );
newItem->setData( 0, Qt::UserRole, name );
newItem->setFlags( newItem->flags() & ~Qt::ItemIsDropEnabled );

mDataDefinedXComboBox->addItem( layerFields[idx].name(), idx );
mDataDefinedYComboBox->addItem( layerFields[idx].name(), idx );
}

0 comments on commit 95a7fbc

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