Skip to content

Commit 359986d

Browse files
committedOct 3, 2018
[ui] remove use of system icons in svg selector widget
1 parent 94aa8d0 commit 359986d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎images/images.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@
718718
<file>themes/default/mActionAdd3DMap.svg</file>
719719
<file>themes/default/mIndicatorNonRemovable.svg</file>
720720
<file>themes/default/mIconFolder.svg</file>
721+
<file>themes/default/mIconFolderHome.svg</file>
721722
<file>themes/default/mIconFolderLink.svg</file>
722723
<file>themes/default/mIconFolderOpen.svg</file>
723724
<file>themes/default/mIconFolderProject.svg</file>

‎src/gui/symbology/qgssvgselectorwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ QgsSvgSelectorGroupsModel::QgsSvgSelectorGroupsModel( QObject *parent )
332332
baseGroup->setData( QVariant( svgPaths.at( i ) ) );
333333
baseGroup->setEditable( false );
334334
baseGroup->setCheckable( false );
335-
baseGroup->setIcon( QgsApplication::style()->standardIcon( QStyle::SP_DirIcon ) );
335+
baseGroup->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconFolder.svg" ) ) );
336336
baseGroup->setToolTip( dir.path() );
337337
parentItem->appendRow( baseGroup );
338338
parentPaths << svgPaths.at( i );
@@ -361,7 +361,7 @@ void QgsSvgSelectorGroupsModel::addPath( const QString &parentPath, const QStrin
361361
group->setEditable( false );
362362
group->setCheckable( false );
363363
group->setToolTip( fullPath );
364-
group->setIcon( QgsApplication::style()->standardIcon( QStyle::SP_DirIcon ) );
364+
group->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconFolder.svg" ) ) );
365365
parentGroup->appendRow( group );
366366
mPathItemHash.insert( fullPath, group );
367367
}

0 commit comments

Comments
 (0)
Please sign in to comment.