Wind 32 support for package path - which will hopefully ensure pyramid and overview mini icons are displayed on legend entry now.

git-svn-id: http://svn.osgeo.org/qgis/trunk@1600 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-06-16 21:59:51 +00:00
parent 8f4734d469
commit fd9ede2af5

View File

@ -404,8 +404,7 @@ QgsRasterLayer::QgsRasterLayer(QString path, QString baseName):QgsMapLayer(RASTE
buildRasterPyramidList();
//load up the pyramid icons
#ifdef WIN32
//TODO Fix this to use the right path
const char *PKGDATAPATH = "foo";
QString PKGDATAPATH = qApp->applicationDirPath() + "/qgis/share";
#endif
mPyramidPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/pyramid.png"));
mNoPyramidPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/no_pyramid.png"));