Skip to content
Permalink
Browse files

[layouts] Use a proper dedicated icon for Fixed Tables

  • Loading branch information
nyalldawson committed Feb 13, 2020
1 parent 0ea024b commit 48994db10dbc6cc8826c30684c467e34f5984ebd
Showing with 3 additions and 1 deletion.
  1. +1 −0 images/images.qrc
  2. +1 −0 images/themes/default/mActionAddManualTable.svg
  3. +1 −1 src/gui/layout/qgslayoutguiutils.cpp
@@ -811,6 +811,7 @@
<file>themes/default/stacked-bar.svg</file>
<file>themes/default/mIconHtml.svg</file>
<file>themes/default/mIconHamburgerMenu.svg</file>
<file>themes/default/mActionAddManualTable.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path stroke-width=".5" stroke-linecap="square" stroke="#969696" overflow="visible" fill="#969696" d="M9.7 14.868l2.756-2.152-1.134-.654z" stroke-linejoin="round" stroke-dashoffset=".5"/><path d="M15.593 2.22l-5.248 9.084" overflow="visible" opacity=".5" fill="#fce94f" stroke="#8b7617" stroke-width=".75" stroke-linecap="round" stroke-linejoin="round" stroke-dashoffset=".5"/><path stroke-width=".5" stroke-linecap="square" stroke="#e6e6e6" overflow="visible" fill="#e6e6e6" d="M9.231 14.717l.54-3.55 1.133.654z" stroke-linejoin="round" stroke-dashoffset=".5"/><path d="M2.5 7.5h19v14h-19z" fill="#e6e6e6" stroke="#6e97c4"/><path d="M2.5 2.5h19v5h-19z" fill="#bad9ec" stroke="#6e97c4"/><path overflow="visible" d="M5 5h6" fill="none" stroke="#6e97c4" stroke-width="2"/><path overflow="visible" d="M5 9.5h3" fill="none" stroke="#999"/><path d="M11 9.5h8" fill="none" stroke="#999"/><path overflow="visible" d="M5 12.5h3M5 15.5h4" fill="none" stroke="#999"/><g transform="translate(-.615 -.615) scale(.76923)" stroke-width=".9"><rect y="19" x="19" width="13" ry="2.353" rx="2.353" height="13" fill="#5a8c5a"/><path d="M21.6 25.5h7.8m-3.9 3.9v-7.8" overflow="visible" fill="#fff" fill-rule="evenodd" stroke="#fff" stroke-width="2.34" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.3 25.5h10.4v-2.6c0-2.6-.65-2.6-5.2-2.6s-5.2 0-5.2 2.6v2.6z" opacity=".3" fill="#fcffff" fill-rule="evenodd"/></g><g stroke-linejoin="round" stroke-dashoffset=".5"><path d="M9.882 10.937l3.408 1.967-4.068 2.945z" fill="#505050" overflow="visible" stroke="#505050" stroke-linecap="round" stroke-width=".75"/><path d="M15.458 1.286l3.408 1.966-5.576 9.652-3.408-1.967 5.576-9.651" fill="#fcb64f" overflow="visible" stroke="#b56411" stroke-linecap="round" stroke-width=".75"/><path d="M16.843 2.383l-5.368 9.208" fill="none" opacity=".5" overflow="visible" stroke="#fcffff" stroke-width="2"/><path d="M18 3l-5.386 9.244" fill-opacity=".588" opacity=".25" overflow="visible" stroke="#000" stroke-width="2"/></g></svg>
@@ -411,7 +411,7 @@ void QgsLayoutGuiUtils::registerGuiForKnownItemTypes( QgsMapCanvas *mapCanvas )

// manual table item

auto manualTableItemMetadata = qgis::make_unique< QgsLayoutItemGuiMetadata >( QgsLayoutItemRegistry::LayoutManualTable, QObject::tr( "Fixed Table" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddTable.svg" ) ),
auto manualTableItemMetadata = qgis::make_unique< QgsLayoutItemGuiMetadata >( QgsLayoutItemRegistry::LayoutManualTable, QObject::tr( "Fixed Table" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddManualTable.svg" ) ),
[ = ]( QgsLayoutItem * item )->QgsLayoutItemBaseWidget *
{
return new QgsLayoutManualTableWidget( qobject_cast< QgsLayoutFrame * >( item ) );

0 comments on commit 48994db

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