Skip to content

Commit

Permalink
Merge pull request #41394 from nirvn/pointcloud_icon
Browse files Browse the repository at this point in the history
Point cloud layer icon improvements
  • Loading branch information
nirvn committed Feb 7, 2021
2 parents dec709f + 53f0e2a commit fb0ace3
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 250 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -585,6 +585,7 @@
<file>themes/default/propertyicons/digitizing.svg</file>
<file>themes/default/propertyicons/display.svg</file>
<file>themes/default/propertyicons/editmetadata.svg</file>
<file>themes/default/propertyicons/elevationscale.svg</file>
<file>themes/default/propertyicons/gdal.svg</file>
<file>themes/default/propertyicons/general.svg</file>
<file>themes/default/propertyicons/histogram.svg</file>
Expand Down
176 changes: 27 additions & 149 deletions images/themes/default/mActionAddPointCloudLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 23 additions & 96 deletions images/themes/default/mIconPointCloudLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions images/themes/default/propertyicons/elevationscale.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsdataitem.sip.in
Expand Up @@ -620,7 +620,7 @@ Returns icon for mesh layer type
%Docstring
Returns icon for vector tile layer
%End
static QIcon iconPointCloudLayer();
static QIcon iconPointCloud();
%Docstring
Returns icon for point cloud layer
%End
Expand Down
Expand Up @@ -70,7 +70,7 @@ void QgsPointCloudElevationPropertiesWidget::onChanged()
QgsPointCloudElevationPropertiesWidgetFactory::QgsPointCloudElevationPropertiesWidgetFactory( QObject *parent )
: QObject( parent )
{
setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mesh/Elevation.svg" ) ) );
setIcon( QgsApplication::getThemeIcon( QStringLiteral( "propertyicons/elevationscale.svg" ) ) );
setTitle( tr( "Elevation" ) );
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -213,7 +213,7 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
break;

case QgsMapLayerType::PointCloudLayer:
icon = QgsLayerItem::iconPointCloudLayer();
icon = QgsLayerItem::iconPointCloud();
break;

case QgsMapLayerType::VectorLayer:
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataitem.cpp
Expand Up @@ -106,7 +106,7 @@ QIcon QgsLayerItem::iconVectorTile()
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconVectorTileLayer.svg" ) );
}

QIcon QgsLayerItem::iconPointCloudLayer()
QIcon QgsLayerItem::iconPointCloud()
{
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconPointCloudLayer.svg" ) );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataitem.h
Expand Up @@ -645,7 +645,7 @@ class CORE_EXPORT QgsLayerItem : public QgsDataItem
//! Returns icon for vector tile layer
static QIcon iconVectorTile();
//! Returns icon for point cloud layer
static QIcon iconPointCloudLayer();
static QIcon iconPointCloud();
//! \returns the layer name
virtual QString layerName() const { return name(); }
};
Expand Down

0 comments on commit fb0ace3

Please sign in to comment.