Skip to content
Permalink
Browse files

[GRASS] fixed icons in browser

(cherry-picked from d9deb23)
  • Loading branch information
blazek authored and nyalldawson committed Mar 1, 2018
1 parent 6385def commit 2ae1ca52b499b131295c0deb8366a3bb934498e8
Showing with 8 additions and 2 deletions.
  1. +7 −1 src/providers/grass/qgsgrassprovidermodule.cpp
  2. +1 −1 src/providers/grass/qgsgrassprovidermodule.h
@@ -371,6 +371,12 @@ QVector<QgsDataItem *>QgsGrassLocationItem::createChildren()
return mapsets;
}

QIcon QgsGrassLocationItem::icon()
{
return QgsApplication::getThemeIcon( "/grass_mapset.svg" );
}


//----------------------- QgsGrassMapsetItem ------------------------------

QList<QgsGrassImport *> QgsGrassMapsetItem::sImports;
@@ -412,7 +418,7 @@ QIcon QgsGrassMapsetItem::icon()
return QgsApplication::getThemeIcon( "/grass_mapset_search.svg" );
}
}
return QgsDirectoryItem::icon();
return QgsApplication::getThemeIcon( "/grass_mapset.svg" );
}

void QgsGrassMapsetItem::setState( State state )
@@ -82,7 +82,7 @@ class QgsGrassLocationItem : public QgsDirectoryItem, public QgsGrassObjectItemB
public:
QgsGrassLocationItem( QgsDataItem *parent, QString dirPath, QString path );

QIcon icon() override { return QgsDirectoryItem::icon(); }
QIcon icon() override;

QVector<QgsDataItem *> createChildren() override;
#ifdef HAVE_GUI

0 comments on commit 2ae1ca5

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