Skip to content

Commit

Permalink
[ui] layout icon for 3D map item
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 6, 2018
1 parent 90624f0 commit a84df1c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -489,6 +489,7 @@
<file>themes/default/mLayoutItemPicture.svg</file>
<file>themes/default/mLayoutItemLabel.svg</file>
<file>themes/default/mLayoutItemLegend.svg</file>
<file>themes/default/mLayoutItem3DMap.svg</file>
<file>themes/default/mLayoutItemMap.svg</file>
<file>themes/default/mLayoutItemPolygon.svg</file>
<file>themes/default/mLayoutItemPolyline.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mLayoutItem3DMap.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/3d/qgslayoutitem3dmap.cpp
Expand Up @@ -45,6 +45,11 @@ int QgsLayoutItem3DMap::type() const
return QgsLayoutItemRegistry::Layout3DMap;
}

QIcon QgsLayoutItem3DMap::icon() const
{
return QgsApplication::getThemeIcon( QStringLiteral( "/mLayoutItem3DMap.svg" ) );
}

void QgsLayoutItem3DMap::assignFreeId()
{
if ( !mLayout )
Expand Down
1 change: 1 addition & 0 deletions src/3d/qgslayoutitem3dmap.h
Expand Up @@ -74,6 +74,7 @@ class _3D_EXPORT QgsLayoutItem3DMap : public QgsLayoutItem
static QgsLayoutItem3DMap *create( QgsLayout *layout ) SIP_FACTORY;

virtual int type() const override;
QIcon icon() const override;

//! Configures camera view
void setCameraPose( const QgsCameraPose &pose );
Expand Down

0 comments on commit a84df1c

Please sign in to comment.