Skip to content
Permalink
Browse files
Tweak the line thicknesses so that the various boxes and frames in
the map composer always appear.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5578 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 9, 2006
1 parent 775422e commit 614a22090a08e73a2ff6dbbbcd08159370214113
@@ -38,7 +38,7 @@ QgsComposerLabel::QgsComposerLabel ( QgsComposition *composition, int id,
// Font and pen
mFont.setPointSize ( fontSize );
// Could make this user variable in the future
mPen.setWidthF (2.0);
mPen.setWidthF (3.0);

Q3CanvasPolygonalItem::setX(x);
Q3CanvasPolygonalItem::setY(y);
@@ -289,7 +289,7 @@ void QgsComposerMap::draw ( QPainter & painter )
// Draw frame around
if ( mFrame ) {
QPen pen(QColor(0,0,0));
pen.setWidthF(0.2*mComposition->scale());
pen.setWidthF(0.6*mComposition->scale());
painter.setPen( pen );
painter.setBrush( Qt::NoBrush );
painter.save();
@@ -151,7 +151,9 @@ void QgsComposerPicture::loadPicture ( void )
// Dummy picture
QPainter p;
p.begin( &mPicture );
p.setPen( QPen(QColor(0,0,0), 1) );
QPen pen(QColor(0,0,0));
pen.setWidthF(3.0);
p.setPen( pen );
p.setBrush( QBrush( QColor( 150, 150, 150) ) );

int w, h;
@@ -137,7 +137,7 @@ void QgsComposerScalebar::init ( void )
setActive(true);

// Default value (map units?) for the scalebar border
mPen.setWidthF(2.0);
mPen.setWidthF(3.0);

// Plot style
setPlotStyle ( QgsComposition::Preview );
@@ -456,7 +456,9 @@ void QgsComposerVectorLegend::draw ( QPainter & painter )
// Draw background rectangle

if ( mFrame ) {
painter.setPen( QPen(QColor(0,0,0), 1) );
QPen pen(QColor(0,0,0));
pen.setWidthF(2.0);
painter.setPen( pen );
painter.setBrush( QBrush( QColor(255,255,255), Qt::SolidPattern) );

painter.save();

0 comments on commit 614a220

Please sign in to comment.