Skip to content
Permalink
Browse files

Use 'Fixed Table' as name for manually created tables

  • Loading branch information
nyalldawson committed Jan 13, 2020
1 parent 90fa54a commit f64d9c1ca050689c6f91f47375353502cbe3a9ac
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/layout/qgslayoutapputils.cpp
  2. +1 −1 src/core/layout/qgslayoutitemregistry.cpp
@@ -427,7 +427,7 @@ void QgsLayoutAppUtils::registerGuiForKnownItemTypes()

// manual table item

auto manualTableItemMetadata = qgis::make_unique< QgsLayoutItemGuiMetadata >( QgsLayoutItemRegistry::LayoutManualTable, QObject::tr( "Table" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddTable.svg" ) ),
auto manualTableItemMetadata = qgis::make_unique< QgsLayoutItemGuiMetadata >( QgsLayoutItemRegistry::LayoutManualTable, QObject::tr( "Fixed Table" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddTable.svg" ) ),
[ = ]( QgsLayoutItem * item )->QgsLayoutItemBaseWidget *
{
return new QgsLayoutManualTableWidget( qobject_cast< QgsLayoutFrame * >( item ) );
@@ -82,7 +82,7 @@ bool QgsLayoutItemRegistry::populate()
addLayoutMultiFrameType( new QgsLayoutMultiFrameMetadata( LayoutHtml, QObject::tr( "HTML" ), QgsLayoutItemHtml::create ) );
addLayoutMultiFrameType( new QgsLayoutMultiFrameMetadata( LayoutAttributeTable, QObject::tr( "Attribute Table" ), QgsLayoutItemAttributeTable::create ) );
addLayoutMultiFrameType( new QgsLayoutMultiFrameMetadata( LayoutTextTable, QObject::tr( "Text Table" ), QgsLayoutItemTextTable::create ) );
addLayoutMultiFrameType( new QgsLayoutMultiFrameMetadata( LayoutManualTable, QObject::tr( "Table" ), QgsLayoutItemManualTable::create ) );
addLayoutMultiFrameType( new QgsLayoutMultiFrameMetadata( LayoutManualTable, QObject::tr( "Fixed Table" ), QgsLayoutItemManualTable::create ) );

return true;
}

0 comments on commit f64d9c1

Please sign in to comment.
You can’t perform that action at this time.