Skip to content

Commit

Permalink
Merge pull request #1397 from manisandro/minmax_fixes
Browse files Browse the repository at this point in the history
Min-max improvements
  • Loading branch information
mhugent committed Jun 2, 2014
2 parents 108cbc3 + c095fe9 commit 990e2bf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsunitselectionwidget.cpp
Expand Up @@ -75,6 +75,7 @@ QgsUnitSelectionWidget::QgsUnitSelectionWidget( QWidget *parent )

setupUi( this );
mMapScaleButton->setVisible( false );
mMapScaleButton->setToolTip( tr( "Adjust scaling range" ) );

connect( mUnitCombo, SIGNAL( currentIndexChanged( int ) ), this, SLOT( toggleUnitRangeButton() ) );
connect( mMapScaleButton, SIGNAL( clicked() ), this, SLOT( showDialog() ) );
Expand Down
27 changes: 18 additions & 9 deletions src/ui/qgsmapunitscaledialog.ui
Expand Up @@ -11,28 +11,31 @@
</rect>
</property>
<property name="windowTitle">
<string>Adjust map unit scales</string>
<string>Adjust scaling range</string>
</property>
<property name="windowIcon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionOptions.png</normaloff>:/images/themes/default/mActionOptions.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<item row="1" column="0">
<widget class="QCheckBox" name="mCheckBoxMaxScale">
<property name="text">
<string>Maximum scale:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="2" column="0">
<widget class="QCheckBox" name="mCheckBoxMinScale">
<property name="text">
<string>Minimum scale:</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<item row="1" column="1" colspan="2">
<widget class="QgsScaleComboBox" name="mComboBoxMaxScale"/>
</item>
<item row="4" column="0" colspan="2">
<widget class="QDialogButtonBox" name="mButtonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
Expand All @@ -42,12 +45,19 @@
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QgsScaleComboBox" name="mComboBoxMaxScale"/>
</item>
<item row="1" column="1" colspan="2">
<item row="2" column="1" colspan="2">
<widget class="QgsScaleComboBox" name="mComboBoxMinScale"/>
</item>
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="label">
<property name="text">
<string>Scale only within the following map unit scale range:</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
Expand Down Expand Up @@ -95,4 +105,3 @@
</connection>
</connections>
</ui>

0 comments on commit 990e2bf

Please sign in to comment.