Skip to content

Commit 1ab67a6

Browse files
author
timlinux
committedJan 11, 2006
Use theme path for icons rather (icons is no longer to be used for themeable elements).
git-svn-id: http://svn.osgeo.org/qgis/trunk@4652 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 996b447 commit 1ab67a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/raster/qgsrasterlayer.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,9 @@ QgsRasterLayer::readFile( QString const & fileName )
539539
buildRasterPyramidList();
540540

541541
//load up the pyramid icons
542-
mPyramidPixmap.load( QgsApplication::pkgDataPath() + QString("/images/icons/pyramid.png"));
543-
mNoPyramidPixmap.load( QgsApplication::pkgDataPath() + QString("/images/icons/no_pyramid.png"));
542+
QString myThemePath = QgsApplication::themePath();
543+
QPixmap myPyramidPixmap(myThemePath + "/mIconPyramid.png");
544+
QPixmap myNoPyramidPixmap(myThemePath + "/mIconNoPyramid.png");
544545

545546
// Get the layer's projection info and set up the
546547
// QgsCoordinateTransform for this layer

0 commit comments

Comments
 (0)
Please sign in to comment.