Skip to content

Commit

Permalink
[ui] remove use of system icons in svg selector widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 3, 2018
1 parent 94aa8d0 commit 359986d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -718,6 +718,7 @@
<file>themes/default/mActionAdd3DMap.svg</file>
<file>themes/default/mIndicatorNonRemovable.svg</file>
<file>themes/default/mIconFolder.svg</file>
<file>themes/default/mIconFolderHome.svg</file>
<file>themes/default/mIconFolderLink.svg</file>
<file>themes/default/mIconFolderOpen.svg</file>
<file>themes/default/mIconFolderProject.svg</file>
Expand Down
4 changes: 2 additions & 2 deletions src/gui/symbology/qgssvgselectorwidget.cpp
Expand Up @@ -332,7 +332,7 @@ QgsSvgSelectorGroupsModel::QgsSvgSelectorGroupsModel( QObject *parent )
baseGroup->setData( QVariant( svgPaths.at( i ) ) );
baseGroup->setEditable( false );
baseGroup->setCheckable( false );
baseGroup->setIcon( QgsApplication::style()->standardIcon( QStyle::SP_DirIcon ) );
baseGroup->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconFolder.svg" ) ) );
baseGroup->setToolTip( dir.path() );
parentItem->appendRow( baseGroup );
parentPaths << svgPaths.at( i );
Expand Down Expand Up @@ -361,7 +361,7 @@ void QgsSvgSelectorGroupsModel::addPath( const QString &parentPath, const QStrin
group->setEditable( false );
group->setCheckable( false );
group->setToolTip( fullPath );
group->setIcon( QgsApplication::style()->standardIcon( QStyle::SP_DirIcon ) );
group->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconFolder.svg" ) ) );
parentGroup->appendRow( group );
mPathItemHash.insert( fullPath, group );
}
Expand Down

0 comments on commit 359986d

Please sign in to comment.