Skip to content

Commit d99d14b

Browse files
committed
Unify behavior of more rotation widgets
1 parent df52620 commit d99d14b

4 files changed

Lines changed: 32 additions & 20 deletions

File tree

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ void QgisApp::createStatusBar()
25882588
mRotationEdit->setKeyboardTracking( false );
25892589
mRotationEdit->setMaximumWidth( 120 );
25902590
mRotationEdit->setDecimals( 1 );
2591-
mRotationEdit->setRange( -180.0, 180.0 );
2591+
mRotationEdit->setRange( -360.0, 360.0 );
25922592
mRotationEdit->setWrapping( true );
25932593
mRotationEdit->setSingleStep( 5.0 );
25942594
mRotationEdit->setFont( myFont );

src/ui/composer/qgscomposeritemwidgetbase.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@
371371
<verstretch>0</verstretch>
372372
</sizepolicy>
373373
</property>
374+
<property name="wrapping">
375+
<bool>true</bool>
376+
</property>
374377
<property name="suffix">
375378
<string> °</string>
376379
</property>

src/ui/composer/qgscomposermapwidgetbase.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
<layout class="QHBoxLayout" name="horizontalLayout_7">
102102
<item>
103103
<widget class="QgsDoubleSpinBox" name="mMapRotationSpinBox">
104+
<property name="wrapping">
105+
<bool>true</bool>
106+
</property>
104107
<property name="suffix">
105108
<string> °</string>
106109
</property>

src/ui/composer/qgscomposerpicturewidgetbase.ui

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>332</width>
9+
<width>334</width>
1010
<height>572</height>
1111
</rect>
1212
</property>
@@ -60,9 +60,9 @@
6060
<property name="geometry">
6161
<rect>
6262
<x>0</x>
63-
<y>-275</y>
64-
<width>316</width>
65-
<height>827</height>
63+
<y>-403</y>
64+
<width>318</width>
65+
<height>949</height>
6666
</rect>
6767
</property>
6868
<layout class="QVBoxLayout" name="mainLayout">
@@ -506,6 +506,9 @@
506506
</item>
507507
<item row="0" column="0" colspan="2">
508508
<widget class="QgsDoubleSpinBox" name="mPictureRotationSpinBox">
509+
<property name="wrapping">
510+
<bool>true</bool>
511+
</property>
509512
<property name="suffix">
510513
<string> °</string>
511514
</property>
@@ -526,6 +529,9 @@
526529
</item>
527530
<item row="3" column="1">
528531
<widget class="QgsDoubleSpinBox" name="mPictureRotationOffsetSpinBox">
532+
<property name="wrapping">
533+
<bool>true</bool>
534+
</property>
529535
<property name="suffix">
530536
<string> °</string>
531537
</property>
@@ -548,39 +554,39 @@
548554
</widget>
549555
<layoutdefault spacing="6" margin="11"/>
550556
<customwidgets>
551-
<customwidget>
552-
<class>QgsScrollArea</class>
553-
<extends>QScrollArea</extends>
554-
<header>qgsscrollarea.h</header>
555-
<container>1</container>
556-
</customwidget>
557557
<customwidget>
558558
<class>QgsColorButton</class>
559559
<extends>QToolButton</extends>
560560
<header>qgscolorbutton.h</header>
561561
<container>1</container>
562562
</customwidget>
563563
<customwidget>
564-
<class>QgsCollapsibleGroupBoxBasic</class>
565-
<extends>QGroupBox</extends>
566-
<header>qgscollapsiblegroupbox.h</header>
567-
<container>1</container>
564+
<class>QgsPropertyOverrideButton</class>
565+
<extends>QToolButton</extends>
566+
<header>qgspropertyoverridebutton.h</header>
568567
</customwidget>
569568
<customwidget>
570569
<class>QgsDoubleSpinBox</class>
571570
<extends>QDoubleSpinBox</extends>
572571
<header>qgsdoublespinbox.h</header>
573572
</customwidget>
573+
<customwidget>
574+
<class>QgsCollapsibleGroupBoxBasic</class>
575+
<extends>QGroupBox</extends>
576+
<header location="global">qgscollapsiblegroupbox.h</header>
577+
<container>1</container>
578+
</customwidget>
579+
<customwidget>
580+
<class>QgsScrollArea</class>
581+
<extends>QScrollArea</extends>
582+
<header>qgsscrollarea.h</header>
583+
<container>1</container>
584+
</customwidget>
574585
<customwidget>
575586
<class>QgsComposerItemComboBox</class>
576587
<extends>QComboBox</extends>
577588
<header>qgscomposeritemcombobox.h</header>
578589
</customwidget>
579-
<customwidget>
580-
<class>QgsPropertyOverrideButton</class>
581-
<extends>QToolButton</extends>
582-
<header>qgspropertyoverridebutton.h</header>
583-
</customwidget>
584590
</customwidgets>
585591
<tabstops>
586592
<tabstop>scrollArea</tabstop>

0 commit comments

Comments
 (0)