Skip to content
Permalink
Browse files

Fix attribute list (transparent colors, disappearing items)

  • Loading branch information
m-kuhn committed Aug 16, 2012
1 parent 91e6563 commit 82c0a0ad13dd67f5e7d68d94694c7d29fb985322
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgsdiagramproperties.cpp
@@ -20,6 +20,7 @@
#include "diagram/qgstextdiagram.h"

#include "qgisapp.h"
#include "qgsapplication.h"
#include "qgsdiagramproperties.h"
#include "qgslabelengineconfigdialog.h"
#include "qgsvectorlayerproperties.h"
@@ -236,7 +237,10 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* pare
QTreeWidgetItem *newItem = new QTreeWidgetItem( mDiagramAttributesTreeWidget );
newItem->setText( 0, layer->pendingFields()[*catIt].name() );
newItem->setData( 0, Qt::UserRole, *catIt );
newItem->setBackground( 1, QBrush( *coIt ) );
newItem->setFlags( newItem->flags() & ~Qt::ItemIsDropEnabled );
QColor col( *coIt );
col.setAlpha( 255 );
newItem->setBackground( 1, QBrush( col ) );
}
}

0 comments on commit 82c0a0a

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