Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More precise composer map rotation (ticket #4632)
  • Loading branch information
mhugent committed Dec 19, 2011
1 parent 8c16e63 commit 4a3f213
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposermapwidget.cpp
Expand Up @@ -161,7 +161,7 @@ void QgsComposerMapWidget::on_mScaleLineEdit_editingFinished()
mComposerMap->endCommand();
}

void QgsComposerMapWidget::on_mRotationSpinBox_valueChanged( int value )
void QgsComposerMapWidget::on_mRotationSpinBox_valueChanged( double value )
{
if ( !mComposerMap )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposermapwidget.h
Expand Up @@ -39,7 +39,7 @@ class QgsComposerMapWidget: public QWidget, private Ui::QgsComposerMapWidgetBase
void on_mHeightLineEdit_editingFinished();
void on_mPreviewModeComboBox_activated( int i );
void on_mScaleLineEdit_editingFinished();
void on_mRotationSpinBox_valueChanged( int value );
void on_mRotationSpinBox_valueChanged( double value );
void on_mSetToMapCanvasExtentButton_clicked();
void on_mUpdatePreviewButton_clicked();
void on_mKeepLayerListCheckBox_stateChanged( int state );
Expand Down
20 changes: 8 additions & 12 deletions src/ui/qgscomposermapwidgetbase.ui
Expand Up @@ -139,16 +139,6 @@
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="buddy">
<cstring>mRotationSpinBox</cstring>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QSpinBox" name="mRotationSpinBox">
<property name="maximum">
<number>359</number>
</property>
</widget>
</item>
<item row="8" column="0" rowspan="2" colspan="2">
Expand Down Expand Up @@ -198,6 +188,13 @@
</property>
</spacer>
</item>
<item row="7" column="1">
<widget class="QDoubleSpinBox" name="mRotationSpinBox">
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down Expand Up @@ -326,7 +323,7 @@
<x>0</x>
<y>0</y>
<width>377</width>
<height>720</height>
<height>695</height>
</rect>
</property>
<attribute name="label">
Expand Down Expand Up @@ -639,7 +636,6 @@
<tabstop>mWidthLineEdit</tabstop>
<tabstop>mHeightLineEdit</tabstop>
<tabstop>mScaleLineEdit</tabstop>
<tabstop>mRotationSpinBox</tabstop>
<tabstop>mKeepLayerListCheckBox</tabstop>
<tabstop>mXMinLineEdit</tabstop>
<tabstop>mXMaxLineEdit</tabstop>
Expand Down

0 comments on commit 4a3f213

Please sign in to comment.