Skip to content
Permalink
Browse files

[layouts] Allow negative values for grid annotation distance

This works, it was just blocked by the spin box minimum value
  • Loading branch information
nyalldawson committed Oct 9, 2020
1 parent 064778d commit 7216045a7e354c9cd31f5f6e1c54569ef8344a1b
Showing with 6 additions and 0 deletions.
  1. +3 −0 src/gui/layout/qgslayoutmapgridwidget.cpp
  2. +3 −0 src/ui/layout/qgslayoutmapgridwidgetbase.ui
@@ -55,6 +55,9 @@ QgsLayoutMapGridWidget::QgsLayoutMapGridWidget( QgsLayoutItemMapGrid *mapGrid, Q
mGridFrameMarginSpinBox->setShowClearButton( true );
mGridFrameMarginSpinBox->setClearValue( 0 );

mDistanceToMapFrameSpinBox->setShowClearButton( true );
mDistanceToMapFrameSpinBox->setClearValue( 0 );

connect( mIntervalXSpinBox, &QgsDoubleSpinBox::editingFinished, this, &QgsLayoutMapGridWidget::mIntervalXSpinBox_editingFinished );
connect( mIntervalYSpinBox, &QgsDoubleSpinBox::editingFinished, this, &QgsLayoutMapGridWidget::mIntervalYSpinBox_editingFinished );
connect( mOffsetXSpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsLayoutMapGridWidget::mOffsetXSpinBox_valueChanged );
@@ -884,6 +884,9 @@
<property name="suffix">
<string> mm</string>
</property>
<property name="minimum">
<double>-99.000000000000000</double>
</property>
</widget>
</item>
<item row="22" column="2">

0 comments on commit 7216045

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