Tweaks to some spin box steps + add some missing clear buttons

This commit is contained in:
Nyall Dawson 2015-07-09 14:12:45 +10:00
parent e7410ed7d2
commit a9e9f86f37
4 changed files with 34 additions and 21 deletions

View File

@ -2255,6 +2255,7 @@ QgsLinePatternFillSymbolLayerWidget::QgsLinePatternFillSymbolLayerWidget( const
setupUi( this ); setupUi( this );
mDistanceUnitWidget->setUnits( QgsSymbolV2::OutputUnitList() << QgsSymbolV2::MM << QgsSymbolV2::MapUnit ); mDistanceUnitWidget->setUnits( QgsSymbolV2::OutputUnitList() << QgsSymbolV2::MM << QgsSymbolV2::MapUnit );
mOffsetUnitWidget->setUnits( QgsSymbolV2::OutputUnitList() << QgsSymbolV2::MM << QgsSymbolV2::MapUnit ); mOffsetUnitWidget->setUnits( QgsSymbolV2::OutputUnitList() << QgsSymbolV2::MM << QgsSymbolV2::MapUnit );
mOffsetSpinBox->setClearValue( 0 );
} }
void QgsLinePatternFillSymbolLayerWidget::setSymbolLayer( QgsSymbolLayerV2* layer ) void QgsLinePatternFillSymbolLayerWidget::setSymbolLayer( QgsSymbolLayerV2* layer )

View File

@ -14,7 +14,16 @@
<string>Global Options</string> <string>Global Options</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="margin"> <property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
@ -102,7 +111,7 @@
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
<property name="showClearButton"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -118,7 +127,7 @@
<property name="maximum"> <property name="maximum">
<double>9999999.000000000000000</double> <double>9999999.000000000000000</double>
</property> </property>
<property name="showClearButton"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -134,7 +143,7 @@
<property name="maximum"> <property name="maximum">
<double>9999999.000000000000000</double> <double>9999999.000000000000000</double>
</property> </property>
<property name="showClearButton"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -153,7 +162,7 @@
<property name="maximum"> <property name="maximum">
<double>9999999.000000000000000</double> <double>9999999.000000000000000</double>
</property> </property>
<property name="showClearButton"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -172,7 +181,7 @@
<property name="maximum"> <property name="maximum">
<double>9999999.000000000000000</double> <double>9999999.000000000000000</double>
</property> </property>
<property name="showClearButton"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -470,7 +479,10 @@
<property name="suffix"> <property name="suffix">
<string> mm</string> <string> mm</string>
</property> </property>
<property name="showClearButton"> <property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="showClearButton" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>

View File

@ -56,7 +56,7 @@
<double>0.500000000000000</double> <double>0.500000000000000</double>
</property> </property>
<property name="showClearButton" stdset="0"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -149,7 +149,7 @@
<double>0.200000000000000</double> <double>0.200000000000000</double>
</property> </property>
<property name="showClearButton" stdset="0"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -161,6 +161,11 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>QgsDataDefinedButton</class>
<extends>QToolButton</extends>
<header>qgsdatadefinedbutton.h</header>
</customwidget>
<customwidget> <customwidget>
<class>QgsDoubleSpinBox</class> <class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends> <extends>QDoubleSpinBox</extends>
@ -172,11 +177,6 @@
<header>qgsunitselectionwidget.h</header> <header>qgsunitselectionwidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>QgsDataDefinedButton</class>
<extends>QToolButton</extends>
<header>qgsdatadefinedbutton.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -155,7 +155,7 @@
<double>0.200000000000000</double> <double>0.200000000000000</double>
</property> </property>
<property name="showClearButton" stdset="0"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -205,7 +205,7 @@
<double>0.200000000000000</double> <double>0.200000000000000</double>
</property> </property>
<property name="showClearButton" stdset="0"> <property name="showClearButton" stdset="0">
<bool>false</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -231,6 +231,11 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>QgsDataDefinedButton</class>
<extends>QToolButton</extends>
<header>qgsdatadefinedbutton.h</header>
</customwidget>
<customwidget> <customwidget>
<class>QgsDoubleSpinBox</class> <class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends> <extends>QDoubleSpinBox</extends>
@ -242,11 +247,6 @@
<header>qgsunitselectionwidget.h</header> <header>qgsunitselectionwidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>QgsDataDefinedButton</class>
<extends>QToolButton</extends>
<header>qgsdatadefinedbutton.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections/>