Skip to content

Commit

Permalink
More precise composer map rotation (ticket #4632)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 19, 2011
1 parent d52ada5 commit bd1300a
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
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 bd1300a

Please sign in to comment.