Skip to content

Commit

Permalink
Fix attribute list (transparent colors, disappearing items)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 16, 2012
1 parent 91e6563 commit 82c0a0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgsdiagramproperties.cpp
Expand Up @@ -20,6 +20,7 @@
#include "diagram/qgstextdiagram.h"

#include "qgisapp.h"
#include "qgsapplication.h"
#include "qgsdiagramproperties.h"
#include "qgslabelengineconfigdialog.h"
#include "qgsvectorlayerproperties.h"
Expand Down Expand Up @@ -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 ) );
}
}

Expand Down

0 comments on commit 82c0a0a

Please sign in to comment.