Skip to content

Commit 28f3123

Browse files
committed
Add icon field boolean field type
(cherry picked from commit 0295d9c)
1 parent f834a7e commit 28f3123

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

images/images.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@
728728
<file>themes/default/mIconAllRings.svg</file>
729729
<file>themes/default/mIconExteriorRing.svg</file>
730730
<file>themes/default/mIconInteriorRings.svg</file>
731+
<file>themes/default/mIconFieldBool.svg</file>
731732
</qresource>
732733
<qresource prefix="/images/tips">
733734
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Lines changed: 1 addition & 0 deletions
Loading

src/core/qgsfields.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ QIcon QgsFields::iconForField( int fieldIdx ) const
258258
{
259259
switch ( d->fields.at( fieldIdx ).field.type() )
260260
{
261+
case QVariant::Bool:
262+
return QgsApplication::getThemeIcon( "/mIconFieldBool.svg" );
263+
261264
case QVariant::Int:
262265
case QVariant::UInt:
263266
case QVariant::LongLong:

0 commit comments

Comments
 (0)