r24519 by jghali - Code cleanup

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 22 20:26:50 UTC 2021


Author: jghali
Date: Mon Feb 22 20:26:50 2021
New Revision: 24519

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

Modified:
    trunk/Scribus/scribus/plugins/gettext/xtgim/fontselectdialog.h
    trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp
    trunk/Scribus/scribus/prefsmanager.cpp

Modified: trunk/Scribus/scribus/plugins/gettext/xtgim/fontselectdialog.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24519&path=/trunk/Scribus/scribus/plugins/gettext/xtgim/fontselectdialog.h
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/xtgim/fontselectdialog.h	(original)
+++ trunk/Scribus/scribus/plugins/gettext/xtgim/fontselectdialog.h	Mon Feb 22 20:26:50 2021
@@ -27,20 +27,20 @@
 #ifndef FONTSELECTDIALOG_H
 #define FONTSELECTDIALOG_H
 
-#include <QString>
-#include <QStringList>
+#include <QComboBox>
 #include <QDialog>
-#include <QVBoxLayout>
 #include <QHBoxLayout>
-#include <QWidget>
 #include <QLabel>
 #include <QPushButton>
 #include <QSpacerItem>
-#include <QComboBox>
+#include <QString>
+#include <QStringList>
+#include <QVBoxLayout>
+#include <QWidget>
 
-class QPushButton;
 class QComboBox;
 class QLabel;
+class QPushButton;
 class QWidget;
 
 class FontSelect:public QDialog

Modified: trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24519&path=/trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp	(original)
+++ trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp	Mon Feb 22 20:26:50 2021
@@ -26,13 +26,13 @@
 
 #include "xtgdialog.h"
 
+#include <QBoxLayout>
+#include <QCheckBox>
+#include <QHBoxLayout>
+#include <QPixmap>
+#include <QPushButton>
 #include <QToolTip>
-#include <QBoxLayout>
 #include <QVBoxLayout>
-#include <QPixmap>
-#include <QHBoxLayout>
-#include <QCheckBox>
-#include <QPushButton>
 
 #include "scribusapi.h"
 #include "iconmanager.h"

Modified: trunk/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24519&path=/trunk/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/prefsmanager.cpp	(original)
+++ trunk/Scribus/scribus/prefsmanager.cpp	Mon Feb 22 20:26:50 2021
@@ -1002,9 +1002,9 @@
 	// The caller is responsible for ensuring we aren't called under those
 	// conditions.
 	Q_ASSERT(!emergencyActivated);
-	int currentScreen=ScCore->primaryMainWindow()->getScreenNumber();
-	int currentScreenXPos=0;
-	int currentScreenYPos=0;
+	int currentScreen = ScCore->primaryMainWindow()->getScreenNumber();
+	int currentScreenXPos = 0;
+	int currentScreenYPos = 0;
 	ScCore->primaryMainWindow()->getScreenPosition(currentScreenXPos, currentScreenYPos);
 	appPrefs.uiPrefs.mainWinSettings.xPosition = ScCore->primaryMainWindow()->pos().x() - currentScreenXPos;
 	appPrefs.uiPrefs.mainWinSettings.yPosition = ScCore->primaryMainWindow()->pos().y() - currentScreenYPos;




More information about the scribus-commit mailing list