Skip to content

Commit

Permalink
[ui] remove use of system icons in browser directory properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 3, 2018
1 parent edc54b7 commit 94aa8d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions images/images.qrc
Expand Up @@ -445,6 +445,8 @@
<file>themes/default/mIconFieldInteger.svg</file>
<file>themes/default/mIconFieldText.svg</file>
<file>themes/default/mIconFieldTime.svg</file>
<file>themes/default/mIconFile.svg</file>
<file>themes/default/mIconFileLink.svg</file>
<file>themes/default/mIconGeonode.svg</file>
<file>themes/default/mIconInfo.svg</file>
<file>themes/default/mIconImport.gif</file>
Expand Down Expand Up @@ -716,6 +718,7 @@
<file>themes/default/mActionAdd3DMap.svg</file>
<file>themes/default/mIndicatorNonRemovable.svg</file>
<file>themes/default/mIconFolder.svg</file>
<file>themes/default/mIconFolderLink.svg</file>
<file>themes/default/mIconFolderOpen.svg</file>
<file>themes/default/mIconFolderProject.svg</file>
</qresource>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mIconFile.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/mIconFileLink.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/mIconFolderLink.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions src/core/qgsdataitem.cpp
Expand Up @@ -960,11 +960,10 @@ QgsDirectoryParamWidget::QgsDirectoryParamWidget( const QString &path, QWidget *
labels << tr( "Name" ) << tr( "Size" ) << tr( "Date" ) << tr( "Permissions" ) << tr( "Owner" ) << tr( "Group" ) << tr( "Type" );
setHeaderLabels( labels );

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

QList<QTreeWidgetItem *> items;

Expand Down

0 comments on commit 94aa8d0

Please sign in to comment.