Skip to content

Commit

Permalink
also use new icon for XYZ node in Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 14, 2020
1 parent b9cb2ee commit 14b2422
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -525,6 +525,7 @@
<file>themes/default/mIconWcs.svg</file>
<file>themes/default/mIconWfs.svg</file>
<file>themes/default/mIconWms.svg</file>
<file>themes/default/mIconXyz.svg</file>
<file>themes/default/mIconZip.svg</file>
<file>themes/default/mIconZoom.svg</file>
<file>themes/default/mItemBookmark.svg</file>
Expand Down
108 changes: 108 additions & 0 deletions images/themes/default/mIconXyz.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/providers/wms/qgswmsdataitems.cpp
Expand Up @@ -576,7 +576,7 @@ QgsXyzTileRootItem::QgsXyzTileRootItem( QgsDataItem *parent, QString name, QStri
: QgsDataCollectionItem( parent, name, path, QStringLiteral( "WMS" ) )
{
mCapabilities |= Fast;
mIconName = QStringLiteral( "mIconWms.svg" );
mIconName = QStringLiteral( "mIconXyz.svg" );
populate();
}

Expand All @@ -600,6 +600,7 @@ QVector<QgsDataItem *> QgsXyzTileRootItem::createChildren()
QgsXyzLayerItem::QgsXyzLayerItem( QgsDataItem *parent, QString name, QString path, const QString &encodedUri )
: QgsLayerItem( parent, name, path, encodedUri, QgsLayerItem::Raster, QStringLiteral( "wms" ) )
{
mIconName = QStringLiteral( "mIconXyz.svg" );
setState( Populated );
}

Expand Down

0 comments on commit 14b2422

Please sign in to comment.