Skip to content
Permalink
Browse files

[ui] remove use of system icons in svg selector widget

  • Loading branch information
nirvn committed Oct 3, 2018
1 parent 94aa8d0 commit 359986d8859b1e219e76a4fa1c7ee1bef48d87cb
Showing with 3 additions and 2 deletions.
  1. +1 −0 images/images.qrc
  2. +2 −2 src/gui/symbology/qgssvgselectorwidget.cpp
@@ -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>
@@ -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 );
@@ -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 );
}

0 comments on commit 359986d

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