Skip to content

Commit

Permalink
qt4 update
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4706 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 20, 2006
1 parent 7f8c5c3 commit ae0903d
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);
#endif
return qgis->addRasterLayer( QStringList(rasterLayerPath) );
}

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

0 comments on commit ae0903d

Please sign in to comment.