Skip to content


Browse files Browse the repository at this point in the history
qt4 update
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 20, 2006
1 parent 966f222 commit 087225d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/gui/qgisiface.cpp
Expand Up @@ -60,14 +60,7 @@ bool QgisIface::addVectorLayer(QString vectorLayerPath, QString baseName, QStrin

bool QgisIface::addRasterLayer(QString rasterLayerPath)
// TODO: This doesn't work in Qt4. morb_au thinks this is casting to
// "bool addRasterLayer(QgsRasterLayer * theRasterLayer, bool theForceRedrawFlag=false)"
// in qgisapp.h; and causing a
// "invalid conversion from ‘QNoImplicitBoolCast’ to ‘QgsRasterLayer*’" error
// not sure why or how to fix.
#if QT_VERSION < 0x040000
return qgis->addRasterLayer(rasterLayerPath);
return qgis->addRasterLayer( QStringList(rasterLayerPath) );

bool QgisIface::addRasterLayer(QgsRasterLayer * theRasterLayer, bool theForceRenderFlag)
Expand Down

0 comments on commit 087225d

Please sign in to comment.