Skip to content

Commit 1e113d6

Browse files
committed
[composer] Some small tweaks to grid defaults and ui (sponsored
by NIWA, New Zealand)
1 parent 53fa30f commit 1e113d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/composer/qgscomposermapwidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ void QgsComposerMapWidget::on_mAddGridPushButton_clicked()
973973

974974
addGridListItem( grid->id(), grid->name() );
975975
mGridListWidget->setCurrentRow( 0 );
976+
on_mGridListWidget_currentItemChanged( mGridListWidget->currentItem(), 0 );
976977
}
977978

978979
void QgsComposerMapWidget::on_mRemoveGridPushButton_clicked()

src/core/composer/qgscomposermapgrid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ QgsComposerMapGrid::QgsComposerMapGrid( const QString& name, QgsComposerMap* map
5858
mGridFrameSides( QgsComposerMapGrid::FrameLeft | QgsComposerMapGrid::FrameRight |
5959
QgsComposerMapGrid::FrameTop | QgsComposerMapGrid::FrameBottom ),
6060
mGridFrameWidth( 2.0 ),
61-
mGridFramePenThickness( 0.5 ),
61+
mGridFramePenThickness( 0.3 ),
6262
mGridFramePenColor( QColor( 0, 0, 0 ) ),
6363
mGridFrameFillColor1( Qt::white ),
6464
mGridFrameFillColor2( Qt::black ),
@@ -232,7 +232,7 @@ bool QgsComposerMapGrid::readXML( const QDomElement& itemElem, const QDomDocumen
232232
mGridFrameStyle = ( QgsComposerMap::GridFrameStyle )itemElem.attribute( "gridFrameStyle", "0" ).toInt();
233233
mGridFrameSides = ( QgsComposerMapGrid::GridFrameSideFlags )itemElem.attribute( "gridFrameSideFlags", "15" ).toInt();
234234
mGridFrameWidth = itemElem.attribute( "gridFrameWidth", "2.0" ).toDouble();
235-
mGridFramePenThickness = itemElem.attribute( "gridFramePenThickness", "0.5" ).toDouble();
235+
mGridFramePenThickness = itemElem.attribute( "gridFramePenThickness", "0.3" ).toDouble();
236236
mGridFramePenColor = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "gridFramePenColor", "0,0,0" ) );
237237
mGridFrameFillColor1 = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "frameFillColor1", "255,255,255,255" ) );
238238
mGridFrameFillColor2 = QgsSymbolLayerV2Utils::decodeColor( itemElem.attribute( "frameFillColor2", "0,0,0,255" ) );

0 commit comments

Comments
 (0)