Skip to content

Commit

Permalink
[composer] Fix display name for attribute table frames
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 2, 2014
1 parent 456e971 commit 10d75c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/composer/qgscomposerattributetablev2.sip
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions src/core/composer/qgscomposerattributetablev2.cpp
Expand Up @@ -148,6 +148,11 @@ QgsComposerAttributeTableV2::~QgsComposerAttributeTableV2()
{
}

QString QgsComposerAttributeTableV2::displayName() const
{
return tr( "<attribute table>" );
}

void QgsComposerAttributeTableV2::setVectorLayer( QgsVectorLayer* layer )
{
if ( layer == mVectorLayer )
Expand Down
2 changes: 2 additions & 0 deletions src/core/composer/qgscomposerattributetablev2.h
Expand Up @@ -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.
Expand Down

0 comments on commit 10d75c0

Please sign in to comment.