r24442 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 2 11:53:45 UTC 2021


Author: jghali
Date: Tue Feb  2 11:53:45 2021
New Revision: 24442

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24442
Log:
Code style fixes

Modified:
    trunk/Scribus/scribus/ui/propertiespalette_group.cpp
    trunk/Scribus/scribus/ui/propertiespalette_text.cpp
    trunk/Scribus/scribus/ui/propertywidget_advanced.cpp
    trunk/Scribus/scribus/ui/propertywidget_distance.cpp
    trunk/Scribus/scribus/ui/propertywidget_flop.cpp
    trunk/Scribus/scribus/ui/propertywidget_fontfeatures.cpp
    trunk/Scribus/scribus/ui/propertywidget_optmargins.cpp
    trunk/Scribus/scribus/ui/propertywidget_orphans.cpp
    trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
    trunk/Scribus/scribus/ui/propertywidget_pathtext.cpp
    trunk/Scribus/scribus/ui/propertywidget_textcolor.cpp

Modified: trunk/Scribus/scribus/ui/propertiespalette_group.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertiespalette_group.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_group.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_group.cpp	Tue Feb  2 11:53:45 2021
@@ -45,8 +45,6 @@
 #endif
 #include <cmath>
 
-
-
 #include "appmodes.h"
 #include "commonstrings.h"
 #include "iconmanager.h"
@@ -64,8 +62,6 @@
 #include "util.h"
 #include "util_math.h"
 
-
-
 PropertiesPalette_Group::PropertiesPalette_Group( QWidget* parent)
 	: QWidget(parent)
 {

Modified: trunk/Scribus/scribus/ui/propertiespalette_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertiespalette_text.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_text.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_text.cpp	Tue Feb  2 11:53:45 2021
@@ -153,14 +153,14 @@
 	m_doc  = d;
 	m_item = nullptr;
 
-	m_unitRatio   = m_doc->unitRatio();
-	m_unitIndex   = m_doc->unitIndex();
+	m_unitRatio = m_doc->unitRatio();
+	m_unitIndex = m_doc->unitIndex();
 
 	m_haveDoc  = true;
 	m_haveItem = false;
 
-	fontSize->setValues( 0.5, 2048, 2, 1);
-	lineSpacing->setValues( 1, 2048, 2, 1);
+	fontSize->setValues(0.5, 2048, 2, 1);
+	lineSpacing->setValues(1, 2048, 2, 1);
 
 	advancedWidgets->setDoc(m_doc);
 	fontfeaturesWidget->setDoc(m_doc);

Modified: trunk/Scribus/scribus/ui/propertywidget_advanced.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_advanced.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_advanced.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_advanced.cpp	Tue Feb  2 11:53:45 2021
@@ -23,12 +23,12 @@
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
 
-	layout()->setAlignment( Qt::AlignLeft );
-
-	textBase->setValue( 0 );
-
-	scaleH->setValues(10, 400, 2, 100 );
-	scaleV->setValues(10, 400, 2, 100 );
+	layout()->setAlignment(Qt::AlignLeft);
+
+	textBase->setValue(0);
+
+	scaleH->setValues(10, 400, 2, 100);
+	scaleV->setValues(10, 400, 2, 100);
 
 	minWordTrackingLabel->setBuddy(minWordTrackingSpinBox);
 	normWordTrackingLabel->setBuddy(normWordTrackingSpinBox);

Modified: trunk/Scribus/scribus/ui/propertywidget_distance.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_distance.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_distance.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_distance.cpp	Tue Feb  2 11:53:45 2021
@@ -27,7 +27,7 @@
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
 
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 
 	columnsLabel->setBuddy(columns);
 	columnGap->setValues(0, 300, 2, 0);

Modified: trunk/Scribus/scribus/ui/propertywidget_flop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_flop.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_flop.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_flop.cpp	Tue Feb  2 11:53:45 2021
@@ -16,7 +16,7 @@
 
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 	
 	flopRealHeight->setChecked(true);
 

Modified: trunk/Scribus/scribus/ui/propertywidget_fontfeatures.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_fontfeatures.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_fontfeatures.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_fontfeatures.cpp	Tue Feb  2 11:53:45 2021
@@ -22,7 +22,7 @@
 
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 
 	initWidgets();
 	languageChange();

Modified: trunk/Scribus/scribus/ui/propertywidget_optmargins.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_optmargins.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_optmargins.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_optmargins.cpp	Tue Feb  2 11:53:45 2021
@@ -24,7 +24,7 @@
 
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 
 	languageChange();
 }

Modified: trunk/Scribus/scribus/ui/propertywidget_orphans.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_orphans.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_orphans.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_orphans.cpp	Tue Feb  2 11:53:45 2021
@@ -16,7 +16,7 @@
 
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 	keepLinesStart->setDecimals(0);
 	keepLinesEnd->setDecimals(0);
 

Modified: trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	Tue Feb  2 11:53:45 2021
@@ -27,7 +27,7 @@
 	setupUi(this);
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 
 	languageChange();
 	dropCapLines->setValue(2);

Modified: trunk/Scribus/scribus/ui/propertywidget_pathtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_pathtext.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_pathtext.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_pathtext.cpp	Tue Feb  2 11:53:45 2021
@@ -21,7 +21,7 @@
 
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
-	layout()->setAlignment( Qt::AlignTop );
+	layout()->setAlignment(Qt::AlignTop);
 	
 	startOffset->setValues(0, 30000, 2, 0);
 	startOffset->setSingleStep(10);

Modified: trunk/Scribus/scribus/ui/propertywidget_textcolor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24442&path=/trunk/Scribus/scribus/ui/propertywidget_textcolor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_textcolor.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_textcolor.cpp	Tue Feb  2 11:53:45 2021
@@ -22,21 +22,21 @@
 	setFrameStyle(QFrame::Box | QFrame::Plain);
 	setLineWidth(1);
 
-	layout()->setAlignment( Qt::AlignLeft );
-
-	fillLayout->setAlignment( Qt::AlignLeft );
+	layout()->setAlignment(Qt::AlignLeft);
+
+	fillLayout->setAlignment(Qt::AlignLeft);
 	fillColor->setPixmapType(ColorCombo::fancyPixmaps);
 	fillIcon->setScaledContents( false );
 
-	strokeLayout->setAlignment( Qt::AlignLeft );
+	strokeLayout->setAlignment(Qt::AlignLeft);
 	strokeColor->setPixmapType(ColorCombo::fancyPixmaps);
 	strokeIcon->setScaledContents( false );
 
-	backLayout->setAlignment( Qt::AlignLeft );
+	backLayout->setAlignment(Qt::AlignLeft);
 	backColor->setPixmapType(ColorCombo::fancyPixmaps);
 	backIcon->setScaledContents( false );
 
-	effectsLayout->setAlignment( Qt::AlignLeft );
+	effectsLayout->setAlignment(Qt::AlignLeft);
 
 	iconSetChange();
 	languageChange();




More information about the scribus-commit mailing list