Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use qreal line width
git-svn-id: http://svn.osgeo.org/qgis/trunk@5468 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 18, 2006
1 parent b83234b commit a3eb31a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgscontinuouscolorrenderer.cpp
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsgraduatedsymbolrenderer.cpp
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgssinglesymbolrenderer.cpp
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsuniquevaluerenderer.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit a3eb31a

Please sign in to comment.