@@ -56,29 +56,29 @@ bool QgsLayoutItemRegistry::populate()
56
56
return new TestLayoutItem( layout );
57
57
};
58
58
59
- addLayoutItemType( new QgsLayoutItemMetadata( QgsLayoutItemRegistry::LayoutItem + 1002, QStringLiteral( "temp type" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddLabel.svg" ) ), createTemporaryItem ) );
59
+ addLayoutItemType( new QgsLayoutItemMetadata( QgsLayoutItemRegistry::LayoutItem + 1002, QStringLiteral( "temp type" ), createTemporaryItem ) );
60
60
#endif
61
61
62
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutGroup, QObject::tr ( " Group" ), QIcon (), QgsLayoutItemGroup::create ) );
63
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutFrame, QObject::tr ( " Frame" ), QIcon (), QgsLayoutFrame::create ) );
64
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPage, QObject::tr ( " Page" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFileNew.svg " ) ), QgsLayoutItemPage::create ) );
65
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutMap, QObject::tr ( " Map" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddMap.svg " ) ), QgsLayoutItemMap::create ) );
66
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPicture, QObject::tr ( " Picture" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddImage.svg " ) ), QgsLayoutItemPicture::create ) );
67
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutLabel, QObject::tr ( " Label" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionLabel.svg " ) ), QgsLayoutItemLabel::create ) );
68
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutLegend, QObject::tr ( " Legend" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddLegend.svg " ) ), QgsLayoutItemLegend::create ) );
69
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutScaleBar, QObject::tr ( " Scalebar" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionScaleBar.svg " ) ), QgsLayoutItemScaleBar::create ) );
70
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutShape, QObject::tr ( " Shape" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddBasicRectangle.svg " ) ), []( QgsLayout * layout )
62
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutGroup, QObject::tr ( " Group" ), QgsLayoutItemGroup::create ) );
63
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutFrame, QObject::tr ( " Frame" ), QgsLayoutFrame::create ) );
64
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPage, QObject::tr ( " Page" ), QgsLayoutItemPage::create ) );
65
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutMap, QObject::tr ( " Map" ), QgsLayoutItemMap::create ) );
66
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPicture, QObject::tr ( " Picture" ), QgsLayoutItemPicture::create ) );
67
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutLabel, QObject::tr ( " Label" ), QgsLayoutItemLabel::create ) );
68
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutLegend, QObject::tr ( " Legend" ), QgsLayoutItemLegend::create ) );
69
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutScaleBar, QObject::tr ( " Scalebar" ), QgsLayoutItemScaleBar::create ) );
70
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutShape, QObject::tr ( " Shape" ), []( QgsLayout * layout )
71
71
{
72
72
QgsLayoutItemShape *shape = new QgsLayoutItemShape ( layout );
73
73
shape->setShapeType ( QgsLayoutItemShape::Rectangle );
74
74
return shape;
75
75
} ) );
76
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPolygon, QObject::tr ( " Polygon" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddPolygon.svg " ) ), QgsLayoutItemPolygon::create ) );
77
- addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPolyline, QObject::tr ( " Polyline" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddPolyline.svg " ) ), QgsLayoutItemPolyline::create ) );
76
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPolygon, QObject::tr ( " Polygon" ), QgsLayoutItemPolygon::create ) );
77
+ addLayoutItemType ( new QgsLayoutItemMetadata ( LayoutPolyline, QObject::tr ( " Polyline" ), QgsLayoutItemPolyline::create ) );
78
78
79
- addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutHtml, QObject::tr ( " HTML" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddHtml.svg " ) ), QgsLayoutItemHtml::create ) );
80
- addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutAttributeTable, QObject::tr ( " Attribute Table" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddTable.svg " ) ), QgsLayoutItemAttributeTable::create ) );
81
- addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutTextTable, QObject::tr ( " Text Table" ), QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionAddTable.svg " ) ), QgsLayoutItemTextTable::create ) );
79
+ addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutHtml, QObject::tr ( " HTML" ), QgsLayoutItemHtml::create ) );
80
+ addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutAttributeTable, QObject::tr ( " Attribute Table" ), QgsLayoutItemAttributeTable::create ) );
81
+ addLayoutMultiFrameType ( new QgsLayoutMultiFrameMetadata ( LayoutTextTable, QObject::tr ( " Text Table" ), QgsLayoutItemTextTable::create ) );
82
82
83
83
return true ;
84
84
}
0 commit comments