Skip to content
Permalink
Browse files
use qreal line width
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5468 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 18, 2006
1 parent ec6183f commit ee7fda7e4a1fec48d546e9f8365e02a03cc093d5
Showing with 7 additions and 7 deletions.
  1. +1 −1 src/gui/qgscontinuouscolorrenderer.cpp
  2. +2 −2 src/gui/qgsgraduatedsymbolrenderer.cpp
  3. +2 −2 src/gui/qgssinglesymbolrenderer.cpp
  4. +2 −2 src/gui/qgsuniquevaluerenderer.cpp
@@ -126,7 +126,7 @@ void QgsContinuousColorRenderer::renderFeature(QPainter * p, QgsFeature * f, QPi
// later add support for both pen and brush to dialog
QPen pen = mMinimumSymbol->pen();
pen.setColor ( QColor(red, green, blue) );
pen.setWidth ( (int) ( widthScale * pen.width() ) );
pen.setWidthF ( widthScale * pen.width() );

QBrush brush = mMinimumSymbol->brush();

@@ -123,15 +123,15 @@ void QgsGraduatedSymbolRenderer::renderFeature(QPainter * p, QgsFeature * f, QPi
if( !selected )
{
QPen pen=(*it)->pen();
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
p->setPen(pen);
p->setBrush((*it)->brush());
}
else
{
QPen pen=(*it)->pen();
pen.setColor(mSelectionColor);
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
QBrush brush=(*it)->brush();
brush.setColor(mSelectionColor);
p->setPen(pen);
@@ -101,14 +101,14 @@ void QgsSingleSymbolRenderer::renderFeature(QPainter * p, QgsFeature * f, QPixma
if( !selected )
{
QPen pen=mSymbol->pen();
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
p->setPen(pen);
p->setBrush(mSymbol->brush());
}
else
{
QPen pen=mSymbol->pen();
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
pen.setColor(mSelectionColor);
QBrush brush=mSymbol->brush();
brush.setColor(mSelectionColor);
@@ -120,14 +120,14 @@ void QgsUniqueValueRenderer::renderFeature(QPainter* p, QgsFeature* f,QPixmap* p
if( !selected )
{
QPen pen=symbol->pen();
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
p->setPen(pen);
p->setBrush(symbol->brush());
}
else
{
QPen pen=symbol->pen();
pen.setWidth ( (int) (widthScale * pen.width()) );
pen.setWidthF ( widthScale * pen.width() );
pen.setColor(mSelectionColor);
QBrush brush=symbol->brush();
brush.setColor(mSelectionColor);

0 comments on commit ee7fda7

Please sign in to comment.