Skip to content

Commit

Permalink
Remove some code inside am #ifdef QT < 0x4
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5576 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 9, 2006
1 parent ed44fee commit 865a2b4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/composer/qgscomposermap.cpp
Expand Up @@ -279,13 +279,8 @@ void QgsComposerMap::draw ( QPainter & painter )
painter.save();
painter.translate ( Q3CanvasRectangle::x(), Q3CanvasRectangle::y() );

#if QT_VERSION < 0x040000
// Note: CoordDevice doesn't work well
painter.setClipRect ( 0, 0, Q3CanvasRectangle::width(), Q3CanvasRectangle::height(), QPainter::CoordPainter );
#else
// TODO: Qt4 appears to force QPainter::CoordDevice - need to check if this is actually valid.
painter.setClipRect ( 0, 0, Q3CanvasRectangle::width(), Q3CanvasRectangle::height() );
#endif

draw( &painter, &mExtent, &transform);
painter.restore();
Expand Down

0 comments on commit 865a2b4

Please sign in to comment.