From d540f09563b4950389ee8199eb7ec5e34eab1570 Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Sat, 6 Jul 2013 19:13:54 -0600 Subject: [PATCH] Default raster layer icon for when generation of raster legend layer icons is disabled --- images/images.qrc | 1 + images/theme_originals/mIconRasterLayer.svg | 50 ++++++++++++++++++++ images/themes/default/mIconRasterLayer.png | Bin 0 -> 268 bytes src/app/legend/qgslegendlayer.cpp | 2 +- 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 images/theme_originals/mIconRasterLayer.svg create mode 100644 images/themes/default/mIconRasterLayer.png diff --git a/images/images.qrc b/images/images.qrc index d239b1e632c..d1f31f9118f 100644 --- a/images/images.qrc +++ b/images/images.qrc @@ -342,6 +342,7 @@ themes/default/mIconProperties.svg themes/default/mIconPyramid.png themes/default/mIconRaster.png + themes/default/mIconRasterLayer.png themes/default/mIconRenderingDisabled.png themes/default/mIconRenderingEnabled.png themes/default/mIconSelectAdd.svg diff --git a/images/theme_originals/mIconRasterLayer.svg b/images/theme_originals/mIconRasterLayer.svg new file mode 100644 index 00000000000..5ca6aaa62c1 --- /dev/null +++ b/images/theme_originals/mIconRasterLayer.svg @@ -0,0 +1,50 @@ + + + + +GIS icon theme 0.2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/themes/default/mIconRasterLayer.png b/images/themes/default/mIconRasterLayer.png new file mode 100644 index 0000000000000000000000000000000000000000..024c600f5072b71ea40bff8d86045165cce0b62e GIT binary patch literal 268 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5X)_J-(hE&{2N?0IZ(A2SIi%FcqQZ```A)%ygn>PL8e!Rc> zd*9C+8zW@FM PUC!X?>gTe~DWM4fTAgan literal 0 HcmV?d00001 diff --git a/src/app/legend/qgslegendlayer.cpp b/src/app/legend/qgslegendlayer.cpp index 4440e17d2b8..6a007c0d384 100644 --- a/src/app/legend/qgslegendlayer.cpp +++ b/src/app/legend/qgslegendlayer.cpp @@ -321,7 +321,7 @@ QPixmap QgsLegendLayer::getOriginalPixmap() } else { - return QPixmap(); + return QgsApplication::getThemePixmap( "/mIconRasterLayer.png" ); } } }