Remove any hardcoding of spaces to 6 and margins to 9/11 in Krita's UI

REVIEW: 109897

thanks boud for review
parent 8a013214
......@@ -161,7 +161,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
......@@ -147,7 +147,6 @@ colors (Pantone, TruMatch, logo colors, ...)</string>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KisColorSpaceSelector</class>
......
......@@ -264,7 +264,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<resources/>
<connections/>
</ui>
......@@ -326,7 +326,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KisCompositeOpComboBox</class>
......
......@@ -182,7 +182,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KColorButton</class>
......
......@@ -172,7 +172,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
......
......@@ -507,7 +507,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KoAspectButton</class>
......
......@@ -286,7 +286,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
......
......@@ -175,7 +175,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
......
......@@ -100,7 +100,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntSpinBox</class>
......
......@@ -44,7 +44,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>radiusSpinBox</tabstop>
</tabstops>
......
......@@ -42,7 +42,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>radiusSpinBox</tabstop>
</tabstops>
......
......@@ -42,7 +42,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>radiusSpinBox</tabstop>
</tabstops>
......
......@@ -54,7 +54,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>radiusSpinBox</tabstop>
</tabstops>
......
......@@ -93,7 +93,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
......@@ -198,7 +198,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
</customwidgets>
......
......@@ -154,7 +154,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>radioCurrentLayer</tabstop>
<tabstop>radioLayers</tabstop>
......
......@@ -62,7 +62,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
......
......@@ -70,7 +70,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
......
......@@ -120,7 +120,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
......
......@@ -104,7 +104,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
......
......@@ -169,7 +169,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KComboBox</class>
......
......@@ -100,7 +100,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KColorButton</class>
......
......@@ -27,17 +27,11 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" colspan="2" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLabel" name="hgradient" >
<property name="sizePolicy" >
......@@ -103,9 +97,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="KisCurveWidget" name="curveWidget" >
<property name="minimumSize" >
......@@ -165,9 +156,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="2" >
<widget class="QPushButton" name="pb_more_contrast" >
<property name="text" >
......@@ -248,7 +236,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
......
......@@ -22,9 +22,6 @@
</property>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
......@@ -213,9 +210,6 @@
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelIn">
<property name="sizePolicy">
......@@ -295,7 +289,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KisCurveWidget</class>
......
......@@ -92,7 +92,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
......@@ -13,17 +13,11 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label1" >
<property name="text" >
......@@ -61,7 +55,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>KUrlRequester</class>
......
......@@ -260,7 +260,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KisGradientSlider</class>
......
......@@ -13,9 +13,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="textLabel2" >
<property name="text" >
......@@ -76,7 +73,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
</customwidgets>
<resources/>
......
......@@ -13,9 +13,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="textLabel1" >
<property name="text" >
......@@ -89,7 +86,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
</customwidgets>
<resources/>
......
......@@ -135,7 +135,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
......@@ -13,9 +13,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<spacer>
<property name="orientation" >
......@@ -57,9 +54,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="textLabel1" >
<property name="text" >
......@@ -135,9 +129,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="textLabel1_3" >
<property name="text" >
......@@ -206,7 +197,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>KComboBox</class>
......
......@@ -20,12 +20,6 @@
<string>Pages</string>
</property>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>11</number>
</property>
<item>
<widget class="QRadioButton" name="boolAllPages">
<property name="text">
......@@ -84,9 +78,6 @@
</item>
<item row="1" column="0">
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
......@@ -111,9 +102,6 @@
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="textLabel5">
<property name="text">
......@@ -183,9 +171,6 @@
</item>
<item row="3" column="0">
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
......@@ -210,9 +195,6 @@
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="1">
<widget class="QSpinBox" name="intHeight">
<property name="maximum">
......@@ -279,7 +261,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>boolAllPages</tabstop>
<tabstop>boolFirstPage</tabstop>
......
......@@ -207,7 +207,6 @@ You can uncheck the box if you are not using transparency and you want to make t
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KColorButton</class>
......
......@@ -103,7 +103,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KDcrawIface::DcrawSettingsWidget</class>
......
......@@ -637,7 +637,6 @@ You can uncheck the box if you are not using transparency and you want to make t
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>KComboBox</class>
......
......@@ -57,7 +57,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>KColorButton</class>
......
......@@ -36,9 +36,6 @@
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="textLabel2">
<property name="text">
......@@ -188,9 +185,6 @@
</item>
<item>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
......
......@@ -47,7 +47,6 @@ KisToolMeasureOptionsWidget::KisToolMeasureOptionsWidget(QWidget* parent, double
QGridLayout* optionLayout = new QGridLayout(this);
Q_CHECK_PTR(optionLayout);
optionLayout->setMargin(0);
optionLayout->setSpacing(6);
optionLayout->addWidget(new QLabel(i18n("Distance: "), this), 0, 0);
optionLayout->addWidget(new QLabel(i18n("Angle: "), this), 1, 0);
......
......@@ -14,12 +14,6 @@
<string>Color Picker</string>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>9</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="5" column="0">
<widget class="QTreeWidget" name="listViewChannels">
<property name="columnCount">
......@@ -132,7 +126,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>SqueezedComboBox</class>
......
......@@ -244,7 +244,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>KIntSpinBox</class>
......
......@@ -109,7 +109,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
......@@ -71,7 +71,6 @@ KisDlgAdjLayerProps::KisDlgAdjLayerProps(KisNodeSP node,
page->setObjectName("page widget");
QHBoxLayout * layout = new QHBoxLayout(page);
layout->setMargin(0);
layout->setSpacing(6);
setMainWidget(page);
QVBoxLayout *v1 = new QVBoxLayout();
......
......@@ -116,7 +116,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>m11</tabstop>
<tabstop>m12</tabstop>
......
......@@ -199,7 +199,6 @@
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
......
......@@ -13,12 +13,6 @@
<string>Image Resolution</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblWidth" >
<property name="text" >
......@@ -38,9 +32,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblImageXRes" >
<property name="text" >
......@@ -58,9 +49,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblYResolution" >
<property name="text" >
......@@ -78,9 +66,6 @@
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblYResolution_3" >
<property name="text" >
......@@ -95,7 +80,6 @@
</item>
</layout>
</widget>