Skip to content
Permalink
Browse files

[ui] layout icon for 3D map item

  • Loading branch information
nirvn committed Sep 6, 2018
1 parent 90624f0 commit a84df1c4527bfd5a45340997d528979fde602c51
@@ -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>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><defs><linearGradient id="a"><stop offset="0" stop-color="#bfbfbf"/><stop offset="1" stop-color="#e1e1e1"/></linearGradient></defs><path d="M14.803 3.392l-.67.295-2.157-.29-1.737.087-3.168-.372-2.336 1.487-.985-.009-.792 3.142-1.957 2.99 2.143.044L9.649 12.5l5.352-.38z" fill="#f0f0f0"/><g stroke="#aaa" stroke-width=".738" fill="none"><path d="M13.053 4.715L9.38 8.35l-2.66 3.262-.99 1.817-1.55 2.315M17.257 5.041l-4.394 5.173L11 12.936l-.952 4.106m10.19-11.799l-.482 3.423-2.192 3.091-2.156 1.624-.758 2.046-.736 2.89" transform="matrix(.68177 0 0 .67412 .335 .152)"/><path d="M4.06 11.594l2.661.018L11 12.936c2.195-.35 4.378-.78 6.565-1.179l3.63 3.249M6.217 6.886l4.044.6 2.682 2.523 6.813-1.343 1.794 1.944" transform="matrix(.68177 0 0 .67412 .335 .152)"/></g><path d="M14.803 3.391l-.964.223-1.863-.217-1.737.086-3.168-.372L4.736 4.6l-.986-.01-.79 3.142L1 10.722l2.143.044L9.648 12.5 15 12.12z" fill="none" stroke="#9a9a9a" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -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 )
@@ -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 );

0 comments on commit a84df1c

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