Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 614a220
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/composer/qgscomposerlabel.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/composer/qgscomposermap.cpp
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion src/composer/qgscomposerpicture.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/composer/qgscomposerscalebar.cpp
Expand Up @@ -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 );
Expand Down
4 changes: 3 additions & 1 deletion src/composer/qgscomposervectorlegend.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 614a220

Please sign in to comment.