Skip to content

Commit 10d75c0

Browse files
committedOct 2, 2014
[composer] Fix display name for attribute table frames
1 parent 456e971 commit 10d75c0

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
 

‎python/core/composer/qgscomposerattributetablev2.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class QgsComposerAttributeTableV2 : QgsComposerTableV2
4444

4545
QgsComposerAttributeTableV2( QgsComposition* composition /TransferThis/, bool createUndoCommands );
4646
~QgsComposerAttributeTableV2();
47+
48+
virtual QString displayName() const;
4749

4850
/**Writes properties specific to attribute tables
4951
* @param elem an existing QDomElement in which to store the attribute table's properties.

‎src/core/composer/qgscomposerattributetablev2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ QgsComposerAttributeTableV2::~QgsComposerAttributeTableV2()
148148
{
149149
}
150150

151+
QString QgsComposerAttributeTableV2::displayName() const
152+
{
153+
return tr( "<attribute table>" );
154+
}
155+
151156
void QgsComposerAttributeTableV2::setVectorLayer( QgsVectorLayer* layer )
152157
{
153158
if ( layer == mVectorLayer )

‎src/core/composer/qgscomposerattributetablev2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class CORE_EXPORT QgsComposerAttributeTableV2: public QgsComposerTableV2
6666
QgsComposerAttributeTableV2( QgsComposition* composition, bool createUndoCommands );
6767
~QgsComposerAttributeTableV2();
6868

69+
virtual QString displayName() const;
70+
6971
/**Writes properties specific to attribute tables
7072
* @param elem an existing QDomElement in which to store the attribute table's properties.
7173
* @param doc QDomDocument for the destination xml.

0 commit comments

Comments
 (0)
Please sign in to comment.