Skip to content

Commit

Permalink
New icons for QPT files and Python files in the browser
Browse files Browse the repository at this point in the history
Python icon thanks to @pkinglinz
  • Loading branch information
nyalldawson committed Dec 16, 2017
1 parent 252f080 commit a33946b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions images/images.qrc
Expand Up @@ -615,6 +615,8 @@
<file>themes/default/cursors/mZoomOut.svg</file>
<file>themes/default/cursors/mIdentify.svg</file>
<file>themes/default/mIconQgsProjectFile.svg</file>
<file>themes/default/mIconPythonFile.svg</file>
<file>themes/default/mIconQptFile.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mIconPythonFile.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/mIconQptFile.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/app/qgsappbrowserproviders.cpp
Expand Up @@ -139,7 +139,7 @@ QgsQptDataItem::QgsQptDataItem( QgsDataItem *parent, const QString &name, const
: QgsDataItem( QgsDataItem::Custom, parent, name, path )
{
setState( QgsDataItem::Populated ); // no children
setIconName( QStringLiteral( ":/images/icons/qgis-icon-16x16.png" ) );
setIconName( QStringLiteral( "/mIconQptFile.svg" ) );
setToolTip( QDir::toNativeSeparators( path ) );
}

Expand Down Expand Up @@ -182,7 +182,7 @@ QgsPyDataItem::QgsPyDataItem( QgsDataItem *parent, const QString &name, const QS
: QgsDataItem( QgsDataItem::Custom, parent, name, path )
{
setState( QgsDataItem::Populated ); // no children
setIconName( QStringLiteral( ":/images/icons/qgis-icon-16x16.png" ) );
setIconName( QStringLiteral( "/mIconPythonFile.svg" ) );
setToolTip( QDir::toNativeSeparators( path ) );
}

Expand Down

0 comments on commit a33946b

Please sign in to comment.