Skip to content

Commit 94aa8d0

Browse files
committedOct 3, 2018
[ui] remove use of system icons in browser directory properties
1 parent edc54b7 commit 94aa8d0

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed
 

‎images/images.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@
445445
<file>themes/default/mIconFieldInteger.svg</file>
446446
<file>themes/default/mIconFieldText.svg</file>
447447
<file>themes/default/mIconFieldTime.svg</file>
448+
<file>themes/default/mIconFile.svg</file>
449+
<file>themes/default/mIconFileLink.svg</file>
448450
<file>themes/default/mIconGeonode.svg</file>
449451
<file>themes/default/mIconInfo.svg</file>
450452
<file>themes/default/mIconImport.gif</file>
@@ -716,6 +718,7 @@
716718
<file>themes/default/mActionAdd3DMap.svg</file>
717719
<file>themes/default/mIndicatorNonRemovable.svg</file>
718720
<file>themes/default/mIconFolder.svg</file>
721+
<file>themes/default/mIconFolderLink.svg</file>
719722
<file>themes/default/mIconFolderOpen.svg</file>
720723
<file>themes/default/mIconFolderProject.svg</file>
721724
</qresource>

‎images/themes/default/mIconFile.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

‎src/core/qgsdataitem.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,10 @@ QgsDirectoryParamWidget::QgsDirectoryParamWidget( const QString &path, QWidget *
960960
labels << tr( "Name" ) << tr( "Size" ) << tr( "Date" ) << tr( "Permissions" ) << tr( "Owner" ) << tr( "Group" ) << tr( "Type" );
961961
setHeaderLabels( labels );
962962

963-
QStyle *style = QApplication::style();
964-
QIcon iconDirectory = QgsApplication::getThemeIcon( QStringLiteral( "mIconFolderOpen.svg" ) );
965-
QIcon iconFile = QIcon( style->standardIcon( QStyle::SP_FileIcon ) );
966-
QIcon iconDirLink = QIcon( style->standardIcon( QStyle::SP_DirLinkIcon ) );
967-
QIcon iconFileLink = QIcon( style->standardIcon( QStyle::SP_FileLinkIcon ) );
963+
QIcon iconDirectory = QgsApplication::getThemeIcon( QStringLiteral( "mIconFolder.svg" ) );
964+
QIcon iconFile = QgsApplication::getThemeIcon( QStringLiteral( "mIconFile.svg" ) );
965+
QIcon iconDirLink = QgsApplication::getThemeIcon( QStringLiteral( "mIconFolderLink.svg" ) );
966+
QIcon iconFileLink = QgsApplication::getThemeIcon( QStringLiteral( "mIconFileLink.svg" ) );
968967

969968
QList<QTreeWidgetItem *> items;
970969

0 commit comments

Comments
 (0)
Please sign in to comment.