Skip to content
Permalink
Browse files

[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 1e113d68dfe4e015bc332639e21f8e2e787ae912
Showing with 3 additions and 2 deletions.
  1. +1 −0 src/app/composer/qgscomposermapwidget.cpp
  2. +2 −2 src/core/composer/qgscomposermapgrid.cpp
@@ -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()
@@ -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 ),
@@ -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" ) );

0 comments on commit 1e113d6

Please sign in to comment.
You can’t perform that action at this time.