Skip to content
Permalink
Browse files
Use preferred naming conventions for enums
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9535 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 24, 2008
1 parent b564b8c commit 72d793b28263f19204c7bfd2b3a272a2b1880f23
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/core/qgsmaprenderer.cpp
  2. +2 −2 src/core/qgsmaprenderer.h
@@ -51,7 +51,7 @@ QgsMapRenderer::QgsMapRenderer()
mProjectionsEnabled = FALSE;
mDestCRS = new QgsCoordinateReferenceSystem( GEO_EPSG_CRS_ID, QgsCoordinateReferenceSystem::EpsgCrsId ); //WGS 84

mOutputUnits = QgsMapRenderer::MM;
mOutputUnits = QgsMapRenderer::Millimeters;
}

QgsMapRenderer::~QgsMapRenderer()
@@ -241,7 +241,7 @@ void QgsMapRenderer::render( QPainter* painter )
//because sometimes QPainter units are in a local coord sys (e.g. in case of QGraphicsScene)
double sceneDpi = mScaleCalculator->dpi();
double scaleFactor = 1.0;
if ( mOutputUnits == QgsMapRenderer::MM )
if ( mOutputUnits == QgsMapRenderer::Millimeters )
{
scaleFactor = sceneDpi / 25.4;
}
@@ -47,8 +47,8 @@ class CORE_EXPORT QgsMapRenderer : public QObject
/**Output units for pen width and point marker width/height*/
enum OutputUnits
{
MM, //millimeters
PIXEL
Millimeters,
Pixels
//MAP_UNITS probably supported in future versions
};

0 comments on commit 72d793b

Please sign in to comment.