Skip to content

Commit

Permalink
Add icon field boolean field type
Browse files Browse the repository at this point in the history
(cherry picked from commit 0295d9c)
  • Loading branch information
nyalldawson committed Dec 18, 2018
1 parent f834a7e commit 28f3123
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -728,6 +728,7 @@
<file>themes/default/mIconAllRings.svg</file>
<file>themes/default/mIconExteriorRing.svg</file>
<file>themes/default/mIconInteriorRings.svg</file>
<file>themes/default/mIconFieldBool.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/mIconFieldBool.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/qgsfields.cpp
Expand Up @@ -258,6 +258,9 @@ QIcon QgsFields::iconForField( int fieldIdx ) const
{
switch ( d->fields.at( fieldIdx ).field.type() )
{
case QVariant::Bool:
return QgsApplication::getThemeIcon( "/mIconFieldBool.svg" );

case QVariant::Int:
case QVariant::UInt:
case QVariant::LongLong:
Expand Down

0 comments on commit 28f3123

Please sign in to comment.