Skip to content
Permalink
Browse files

[GRASS] fixed icons in browser

  • Loading branch information
blazek committed Feb 26, 2018
1 parent 5b1a714 commit d9deb238b646ac894f0b94534c6049d87a80995f
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

2 comments on commit d9deb23

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Feb 26, 2018

@blazek should this and d9deb23 be backported to 3.0?

@blazek

This comment has been minimized.

Copy link
Member Author

@blazek blazek replied Feb 27, 2018

This one probably yes, it is fix.

The second one, you mean probably 5b1a714, is not harmful but it is not fix.

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