r24510 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 18 17:22:34 UTC 2021


Author: jghali
Date: Thu Feb 18 17:22:34 2021
New Revision: 24510

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

Modified:
    trunk/Scribus/scribus/ui/prefs_userinterface.cpp

Modified: trunk/Scribus/scribus/ui/prefs_userinterface.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24510&path=/trunk/Scribus/scribus/ui/prefs_userinterface.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_userinterface.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_userinterface.cpp	Thu Feb 18 17:22:34 2021
@@ -117,26 +117,26 @@
 void Prefs_UserInterface::saveGuiToPrefs(struct ApplicationPrefs *prefsData) const
 {
 	prefsData->uiPrefs.language=selectedGUILang;
-	prefsData->uiPrefs.userPreferredLocale=numberFormatComboBox->currentData().toString();
-	prefsData->uiPrefs.style=themeComboBox->currentText();
-	prefsData->uiPrefs.iconSet=IconManager::instance().baseNameForTranslation(iconSetComboBox->currentText());
-	prefsData->uiPrefs.applicationFontSize=fontSizeMenuSpinBox->value();
-	prefsData->uiPrefs.paletteFontSize=fontSizePaletteSpinBox->value();
-	prefsData->uiPrefs.wheelJump=wheelJumpSpinBox->value();
-	prefsData->uiPrefs.mouseMoveTimeout=resizeMoveDelaySpinBox->value();
-	prefsData->uiPrefs.recentDocCount=recentDocumentsSpinBox->value();
-	prefsData->uiPrefs.showStartupDialog=showStartupDialogCheckBox->isChecked();
-	prefsData->uiPrefs.useTabs=useTabsForDocumentsCheckBox->isChecked();
-	prefsData->uiPrefs.showSplashOnStartup=showSplashCheckBox->isChecked();
-	prefsData->uiPrefs.useSmallWidgets=useSmallWidgetsCheckBox->isChecked();
+	prefsData->uiPrefs.userPreferredLocale = numberFormatComboBox->currentData().toString();
+	prefsData->uiPrefs.style = themeComboBox->currentText();
+	prefsData->uiPrefs.iconSet = IconManager::instance().baseNameForTranslation(iconSetComboBox->currentText());
+	prefsData->uiPrefs.applicationFontSize = fontSizeMenuSpinBox->value();
+	prefsData->uiPrefs.paletteFontSize = fontSizePaletteSpinBox->value();
+	prefsData->uiPrefs.wheelJump = wheelJumpSpinBox->value();
+	prefsData->uiPrefs.mouseMoveTimeout = resizeMoveDelaySpinBox->value();
+	prefsData->uiPrefs.recentDocCount = recentDocumentsSpinBox->value();
+	prefsData->uiPrefs.showStartupDialog = showStartupDialogCheckBox->isChecked();
+	prefsData->uiPrefs.useTabs = useTabsForDocumentsCheckBox->isChecked();
+	prefsData->uiPrefs.showSplashOnStartup = showSplashCheckBox->isChecked();
+	prefsData->uiPrefs.useSmallWidgets = useSmallWidgetsCheckBox->isChecked();
 
-	prefsData->storyEditorPrefs.guiFont=seFont.toString();
-	prefsData->storyEditorPrefs.guiFontColorBackground=seFontColor;
-	prefsData->storyEditorPrefs.smartTextSelection=storyEditorUseSmartSelectionCheckBox->isChecked();
+	prefsData->storyEditorPrefs.guiFont = seFont.toString();
+	prefsData->storyEditorPrefs.guiFontColorBackground = seFontColor;
+	prefsData->storyEditorPrefs.smartTextSelection = storyEditorUseSmartSelectionCheckBox->isChecked();
 }
 
 
-void Prefs_UserInterface::setSelectedGUILang( const QString &newLang )
+void Prefs_UserInterface::setSelectedGUILang(const QString &newLang)
 {
 	selectedGUILang = LanguageManager::instance()->getAbbrevFromLang(newLang);
 }




More information about the scribus-commit mailing list