Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[composer] Some small tweaks to grid defaults and ui (sponsored
by NIWA, New Zealand)
  • Loading branch information
nyalldawson committed Sep 3, 2014
1 parent 53fa30f commit 1e113d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/composer/qgscomposermapwidget.cpp
Expand Up @@ -973,6 +973,7 @@ void QgsComposerMapWidget::on_mAddGridPushButton_clicked()

addGridListItem( grid->id(), grid->name() );
mGridListWidget->setCurrentRow( 0 );
on_mGridListWidget_currentItemChanged( mGridListWidget->currentItem(), 0 );
}

void QgsComposerMapWidget::on_mRemoveGridPushButton_clicked()
Expand Down
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposermapgrid.cpp
Expand Up @@ -58,7 +58,7 @@ QgsComposerMapGrid::QgsComposerMapGrid( const QString& name, QgsComposerMap* map
mGridFrameSides( QgsComposerMapGrid::FrameLeft | QgsComposerMapGrid::FrameRight |
QgsComposerMapGrid::FrameTop | QgsComposerMapGrid::FrameBottom ),
mGridFrameWidth( 2.0 ),
mGridFramePenThickness( 0.5 ),
mGridFramePenThickness( 0.3 ),
mGridFramePenColor( QColor( 0, 0, 0 ) ),
mGridFrameFillColor1( Qt::white ),
mGridFrameFillColor2( Qt::black ),
Expand Down Expand Up @@ -232,7 +232,7 @@ bool QgsComposerMapGrid::readXML( const QDomElement& itemElem, const QDomDocumen
mGridFrameStyle = ( QgsComposerMap::GridFrameStyle )itemElem.attribute( "gridFrameStyle", "0" ).toInt();
mGridFrameSides = ( QgsComposerMapGrid::GridFrameSideFlags )itemElem.attribute( "gridFrameSideFlags", "15" ).toInt();
mGridFrameWidth = itemElem.attribute( "gridFrameWidth", "2.0" ).toDouble();
mGridFramePenThickness = itemElem.attribute( "gridFramePenThickness", "0.5" ).toDouble();
mGridFramePenThickness = itemElem.attribute( "gridFramePenThickness", "0.3" ).toDouble();
mGridFramePenColor = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "gridFramePenColor", "0,0,0" ) );
mGridFrameFillColor1 = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "frameFillColor1", "255,255,255,255" ) );
mGridFrameFillColor2 = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "frameFillColor2", "0,0,0,255" ) );
Expand Down

0 comments on commit 1e113d6

Please sign in to comment.