diff --git a/python/core/composer/qgscomposerattributetablev2.sip b/python/core/composer/qgscomposerattributetablev2.sip index 0aa9c61980c..6db8fc3cc88 100644 --- a/python/core/composer/qgscomposerattributetablev2.sip +++ b/python/core/composer/qgscomposerattributetablev2.sip @@ -44,6 +44,8 @@ class QgsComposerAttributeTableV2 : QgsComposerTableV2 QgsComposerAttributeTableV2( QgsComposition* composition /TransferThis/, bool createUndoCommands ); ~QgsComposerAttributeTableV2(); + + virtual QString displayName() const; /**Writes properties specific to attribute tables * @param elem an existing QDomElement in which to store the attribute table's properties. diff --git a/src/core/composer/qgscomposerattributetablev2.cpp b/src/core/composer/qgscomposerattributetablev2.cpp index 3dcb9fbeb7e..917481b3dd5 100644 --- a/src/core/composer/qgscomposerattributetablev2.cpp +++ b/src/core/composer/qgscomposerattributetablev2.cpp @@ -148,6 +148,11 @@ QgsComposerAttributeTableV2::~QgsComposerAttributeTableV2() { } +QString QgsComposerAttributeTableV2::displayName() const +{ + return tr( "" ); +} + void QgsComposerAttributeTableV2::setVectorLayer( QgsVectorLayer* layer ) { if ( layer == mVectorLayer ) diff --git a/src/core/composer/qgscomposerattributetablev2.h b/src/core/composer/qgscomposerattributetablev2.h index be5299638a3..90af76b46ce 100644 --- a/src/core/composer/qgscomposerattributetablev2.h +++ b/src/core/composer/qgscomposerattributetablev2.h @@ -66,6 +66,8 @@ class CORE_EXPORT QgsComposerAttributeTableV2: public QgsComposerTableV2 QgsComposerAttributeTableV2( QgsComposition* composition, bool createUndoCommands ); ~QgsComposerAttributeTableV2(); + virtual QString displayName() const; + /**Writes properties specific to attribute tables * @param elem an existing QDomElement in which to store the attribute table's properties. * @param doc QDomDocument for the destination xml.