r24481 by jghali - #16472: Unify margins and spacing for dialogs, set 7 <bubu>
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 15 00:53:35 UTC 2021
Author: jghali
Date: Mon Feb 15 00:53:34 2021
New Revision: 24481
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24481
Log:
#16472: Unify margins and spacing for dialogs, set 7 <bubu>
Modified:
trunk/Scribus/scribus/ui/buttonicon.cpp
trunk/Scribus/scribus/ui/cmykfw.cpp
trunk/Scribus/scribus/ui/cxfimportdialogbase.ui
trunk/Scribus/scribus/ui/gtfiledialog.ui
trunk/Scribus/scribus/ui/multiprogressdialog.ui
trunk/Scribus/scribus/ui/osgeditor.ui
trunk/Scribus/scribus/ui/picstatus.ui
trunk/Scribus/scribus/ui/transformdialogbase.ui
Modified: trunk/Scribus/scribus/ui/buttonicon.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/buttonicon.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/buttonicon.cpp (original)
+++ trunk/Scribus/scribus/ui/buttonicon.cpp Mon Feb 15 00:53:34 2021
@@ -29,11 +29,11 @@
setWindowTitle( tr( "Icon Placement" ) );
setWindowIcon(IconManager::instance().loadPixmap("AppIcon.png"));
ButtonIconLayout = new QVBoxLayout( this );
- ButtonIconLayout->setMargin(10);
- ButtonIconLayout->setSpacing(5);
+ ButtonIconLayout->setContentsMargins(9, 9, 9, 9);
+ ButtonIconLayout->setSpacing(6);
Layout1 = new QGridLayout;
- Layout1->setMargin(0);
- Layout1->setSpacing(5);
+ Layout1->setContentsMargins(0, 0, 0, 0);
+ Layout1->setSpacing(6);
TextLabel1_2 = new QLabel( this );
TextLabel1_2->setText( tr( "Layout:" ) );
Layout1->addWidget( TextLabel1_2, 0, 0 );
@@ -71,13 +71,13 @@
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer );
Layout5 = new QHBoxLayout;
- Layout5->setMargin(0);
- Layout5->setSpacing(5);
+ Layout5->setContentsMargins(0, 0, 0, 0);
+ Layout5->setSpacing(6);
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5->addItem( spacer_2 );
Layout3 = new QGridLayout;
- Layout3->setMargin(0);
- Layout3->setSpacing(5);
+ Layout3->setContentsMargins(0, 0, 0, 0);
+ Layout3->setSpacing(6);
GroupButton = new QGroupBox( this );
GroupButton->setMinimumSize( QSize( 150, 150 ) );
GroupButton->setMaximumSize( QSize( 150, 150 ) );
@@ -111,8 +111,8 @@
QSpacerItem* spacer_4 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer_4 );
Layout4 = new QHBoxLayout;
- Layout4->setMargin(0);
- Layout4->setSpacing(5);
+ Layout4->setContentsMargins(0, 0, 0, 0);
+ Layout4->setSpacing(6);
OK = new QPushButton( this );
OK->setText( tr( "OK" ) );
OK->setDefault( true );
Modified: trunk/Scribus/scribus/ui/cmykfw.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/cmykfw.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/cmykfw.cpp (original)
+++ trunk/Scribus/scribus/ui/cmykfw.cpp Mon Feb 15 00:53:34 2021
@@ -113,8 +113,8 @@
// We set it in the dialog showEvent().
// Swatches->setCurrentComboItem( tr( "Color Map" ));
- slidersLayout->setSpacing(5);
- slidersLayout->setMargin(0);
+ slidersLayout->setSpacing(6);
+ slidersLayout->setContentsMargins(0, 0, 0, 0);
CyanSp->setNewUnit(0);
CyanSp->setMinimum(0);
Modified: trunk/Scribus/scribus/ui/cxfimportdialogbase.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/cxfimportdialogbase.ui
==============================================================================
--- trunk/Scribus/scribus/ui/cxfimportdialogbase.ui (original)
+++ trunk/Scribus/scribus/ui/cxfimportdialogbase.ui Mon Feb 15 00:53:34 2021
@@ -14,6 +14,18 @@
<string>CxF Import</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
+ <property name="leftMargin">
+ <number>9</number>
+ </property>
+ <property name="topMargin">
+ <number>9</number>
+ </property>
+ <property name="rightMargin">
+ <number>9</number>
+ </property>
+ <property name="bottomMargin">
+ <number>9</number>
+ </property>
<item>
<widget class="QLabel" name="label">
<property name="text">
Modified: trunk/Scribus/scribus/ui/gtfiledialog.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/gtfiledialog.ui
==============================================================================
--- trunk/Scribus/scribus/ui/gtfiledialog.ui (original)
+++ trunk/Scribus/scribus/ui/gtfiledialog.ui Mon Feb 15 00:53:34 2021
@@ -14,14 +14,26 @@
<string>Open</string>
</property>
<layout class="QGridLayout" name="gridLayout">
+ <property name="leftMargin">
+ <number>9</number>
+ </property>
+ <property name="topMargin">
+ <number>9</number>
+ </property>
+ <property name="rightMargin">
+ <number>9</number>
+ </property>
+ <property name="bottomMargin">
+ <number>9</number>
+ </property>
<item row="0" column="0" colspan="3">
<widget class="ScFileWidget" name="fileWidget" native="true"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
- <property name="text">
- <string>&Importer:</string>
- </property>
+ <property name="text">
+ <string>&Importer:</string>
+ </property>
<property name="buddy">
<cstring>importerCombo</cstring>
</property>
Modified: trunk/Scribus/scribus/ui/multiprogressdialog.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/multiprogressdialog.ui
==============================================================================
--- trunk/Scribus/scribus/ui/multiprogressdialog.ui (original)
+++ trunk/Scribus/scribus/ui/multiprogressdialog.ui Mon Feb 15 00:53:34 2021
@@ -1,7 +1,8 @@
-<ui version="4.0" >
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
<class>MultiProgressDialog</class>
- <widget class="QDialog" name="MultiProgressDialog" >
- <property name="geometry" >
+ <widget class="QDialog" name="MultiProgressDialog">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -9,28 +10,40 @@
<height>84</height>
</rect>
</property>
- <property name="windowTitle" >
+ <property name="windowTitle">
<string>Progress</string>
</property>
- <property name="sizeGripEnabled" >
+ <property name="sizeGripEnabled">
<bool>false</bool>
</property>
- <layout class="QVBoxLayout" >
+ <layout class="QVBoxLayout">
+ <property name="leftMargin">
+ <number>9</number>
+ </property>
+ <property name="topMargin">
+ <number>9</number>
+ </property>
+ <property name="rightMargin">
+ <number>9</number>
+ </property>
+ <property name="bottomMargin">
+ <number>9</number>
+ </property>
<item>
- <layout class="QGridLayout" >
- <item row="0" column="0" >
- <widget class="QLabel" name="overallProgressLabel" >
- <property name="text" >
+ <layout class="QGridLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="overallProgressLabel">
+ <property name="text">
<string>Overall Progress:</string>
</property>
- <property name="wordWrap" >
+ <property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
- <item row="0" column="1" >
- <widget class="QProgressBar" name="overallProgressBar" >
- <property name="value" >
+ <item row="0" column="1">
+ <widget class="QProgressBar" name="overallProgressBar">
+ <property name="value">
<number>0</number>
</property>
</widget>
@@ -38,22 +51,16 @@
</layout>
</item>
<item>
- <layout class="QHBoxLayout" >
- <property name="spacing" >
- <number>6</number>
- </property>
- <property name="margin" >
- <number>0</number>
- </property>
+ <layout class="QHBoxLayout">
<item>
<spacer>
- <property name="orientation" >
+ <property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeType" >
+ <property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" >
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -62,14 +69,14 @@
</spacer>
</item>
<item>
- <widget class="QPushButton" name="buttonCancel" >
- <property name="text" >
+ <widget class="QPushButton" name="buttonCancel">
+ <property name="text">
<string>&Cancel</string>
</property>
- <property name="shortcut" >
+ <property name="shortcut">
<string/>
</property>
- <property name="autoDefault" >
+ <property name="autoDefault">
<bool>true</bool>
</property>
</widget>
@@ -78,9 +85,8 @@
</item>
</layout>
</widget>
- <layoutdefault spacing="6" margin="11" />
<includes>
- <include location="local" >scribusapi.h</include>
+ <include location="local">scribusapi.h</include>
</includes>
<resources/>
<connections>
@@ -90,11 +96,11 @@
<receiver>MultiProgressDialog</receiver>
<slot>reject()</slot>
<hints>
- <hint type="sourcelabel" >
+ <hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
- <hint type="destinationlabel" >
+ <hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
Modified: trunk/Scribus/scribus/ui/osgeditor.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/osgeditor.ui
==============================================================================
--- trunk/Scribus/scribus/ui/osgeditor.ui (original)
+++ trunk/Scribus/scribus/ui/osgeditor.ui Mon Feb 15 00:53:34 2021
@@ -11,12 +11,24 @@
</rect>
</property>
<property name="windowTitle">
- <string>3D Properties</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
+ <string>3D Properties</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <property name="leftMargin">
+ <number>9</number>
+ </property>
+ <property name="topMargin">
+ <number>9</number>
+ </property>
+ <property name="rightMargin">
+ <number>9</number>
+ </property>
+ <property name="bottomMargin">
+ <number>9</number>
+ </property>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
@@ -104,15 +116,12 @@
</item>
</layout>
</widget>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <property name="spacing">
- <number>5</number>
- </property>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
<widget class="QPushButton" name="loadButton">
<property name="text">
<string>Load Model ...</string>
@@ -137,15 +146,12 @@
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
- <string>Views</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <property name="spacing">
- <number>5</number>
- </property>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
+ <string>Views</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
<widget class="QLabel" name="label_10">
<property name="text">
<string>Name:</string>
Modified: trunk/Scribus/scribus/ui/picstatus.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/picstatus.ui
==============================================================================
--- trunk/Scribus/scribus/ui/picstatus.ui (original)
+++ trunk/Scribus/scribus/ui/picstatus.ui Mon Feb 15 00:53:34 2021
@@ -53,7 +53,7 @@
<enum>QListView::Adjust</enum>
</property>
<property name="spacing">
- <number>5</number>
+ <number>6</number>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
Modified: trunk/Scribus/scribus/ui/transformdialogbase.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24481&path=/trunk/Scribus/scribus/ui/transformdialogbase.ui
==============================================================================
--- trunk/Scribus/scribus/ui/transformdialogbase.ui (original)
+++ trunk/Scribus/scribus/ui/transformdialogbase.ui Mon Feb 15 00:53:34 2021
@@ -20,6 +20,18 @@
<string>Transform</string>
</property>
<layout class="QVBoxLayout">
+ <property name="leftMargin">
+ <number>9</number>
+ </property>
+ <property name="topMargin">
+ <number>9</number>
+ </property>
+ <property name="rightMargin">
+ <number>9</number>
+ </property>
+ <property name="bottomMargin">
+ <number>9</number>
+ </property>
<item>
<layout class="QHBoxLayout">
<item>
More information about the scribus-commit
mailing list