[composer] Fix display name for attribute table frames

This commit is contained in:
Nyall Dawson 2014-10-03 09:15:07 +10:00
parent 456e971372
commit 10d75c0066
3 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -148,6 +148,11 @@ QgsComposerAttributeTableV2::~QgsComposerAttributeTableV2()
{
}
QString QgsComposerAttributeTableV2::displayName() const
{
return tr( "<attribute table>" );
}
void QgsComposerAttributeTableV2::setVectorLayer( QgsVectorLayer* layer )
{
if ( layer == mVectorLayer )

View File

@ -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.