diff --git a/src/gui/attributetable/qgsattributetablemodel.cpp b/src/gui/attributetable/qgsattributetablemodel.cpp index 4db7d132994..333fd16531a 100644 --- a/src/gui/attributetable/qgsattributetablemodel.cpp +++ b/src/gui/attributetable/qgsattributetablemodel.cpp @@ -27,7 +27,6 @@ #include "qgsmaplayerregistry.h" #include "qgsrendererv2.h" #include "qgsvectorlayer.h" -#include "qgssymbollayerv2utils.h" #include @@ -38,7 +37,6 @@ QgsAttributeTableModel::QgsAttributeTableModel( QgsVectorLayerCache *layerCache, , mLayerCache( layerCache ) , mFieldCount( 0 ) , mCachedField( -1 ) - , mIconSize( 16, 16 ) { QgsDebugMsg( "entered." ); @@ -496,27 +494,6 @@ QVariant QgsAttributeTableModel::headerData( int section, Qt::Orientation orient return tr( "feature id" ); } } - else if ( role == Qt::DecorationRole - && orientation == Qt::Vertical - && layer()->geometryType() != QGis::NoGeometry ) - { - QgsRenderContext ctx; - QgsFeature feature; - mLayerCache->featureAtId( mRowIdMap[section], feature ); - - layer()->rendererV2()->startRender( ctx, layer()->pendingFields() ); - QgsSymbolV2List symbols = layer()->rendererV2()->symbolsForFeature( feature ); - if ( symbols.count() == 0 ) - { - layer()->rendererV2()->stopRender( ctx ); - return 0; - } - - QgsSymbolV2* symbol = symbols.first(); - QPixmap pix = QgsSymbolLayerV2Utils::symbolPreviewPixmap( symbol, mIconSize ); - layer()->rendererV2()->stopRender( ctx ); - return pix; - } else { return QVariant(); diff --git a/src/gui/attributetable/qgsattributetablemodel.h b/src/gui/attributetable/qgsattributetablemodel.h index 96f5a87e130..cdb89734cb2 100644 --- a/src/gui/attributetable/qgsattributetablemodel.h +++ b/src/gui/attributetable/qgsattributetablemodel.h @@ -315,8 +315,6 @@ class GUI_EXPORT QgsAttributeTableModel: public QAbstractTableModel /** Allows caching of one specific column (used for sorting) */ QHash mFieldCache; - QSize mIconSize; - /** * Holds the bounds of changed cells while an update operation is running * top = min row