Skip to content

Commit

Permalink
use QgsApplication::pkgDataPath()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4648 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 11, 2006
1 parent a0ffd48 commit 0d9712d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/raster/qgsrasterlayer.cpp
Expand Up @@ -111,6 +111,7 @@ wish to see edbug messages printed to stdout.

#include "qgsrect.h"
#include "qgisapp.h"
#include "qgsapplication.h"
//#include "qgscolortable.h"
#include "qgsrasterlayerproperties.h"
#include "qgsproject.h"
Expand Down Expand Up @@ -538,12 +539,8 @@ QgsRasterLayer::readFile( QString const & fileName )
buildRasterPyramidList();

//load up the pyramid icons
#if defined(WIN32) || defined(Q_OS_MACX)
QString PKGDATAPATH = qApp->applicationDirPath() + "/share/qgis";
#endif

mPyramidPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/pyramid.png"));
mNoPyramidPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/no_pyramid.png"));
mPyramidPixmap.load( QgsApplication::pkgDataPath() + QString("/images/icons/pyramid.png"));
mNoPyramidPixmap.load( QgsApplication::pkgDataPath() + QString("/images/icons/no_pyramid.png"));

// Get the layer's projection info and set up the
// QgsCoordinateTransform for this layer
Expand Down

0 comments on commit 0d9712d

Please sign in to comment.