r24523 by jghali - Code cleanup
scribus-commit
scribus-commit at lists.scribus.net
Tue Feb 23 13:35:47 UTC 2021
Author: jghali
Date: Tue Feb 23 13:35:47 2021
New Revision: 24523
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24523
Log:
Code cleanup
Modified:
trunk/Scribus/scribus/ui/fontcombo.cpp
trunk/Scribus/scribus/ui/storyeditor.cpp
Modified: trunk/Scribus/scribus/ui/fontcombo.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24523&path=/trunk/Scribus/scribus/ui/fontcombo.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/fontcombo.cpp (original)
+++ trunk/Scribus/scribus/ui/fontcombo.cpp Tue Feb 23 13:35:47 2021
@@ -122,8 +122,8 @@
int col = 0;
if (showLabels)
{
- fontFaceLabel = new QLabel("", this);
- fontStyleLabel = new QLabel("", this);
+ fontFaceLabel = new QLabel(this);
+ fontStyleLabel = new QLabel(this);
fontComboLayout->addWidget(fontFaceLabel, 0, 0);
fontComboLayout->addWidget(fontStyleLabel, 1, 0);
fontComboLayout->setColumnStretch(1, 10);
Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24523&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp (original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp Tue Feb 23 13:35:47 2021
@@ -1473,7 +1473,7 @@
fontsAction=addWidget(Fonts);
fontsAction->setVisible(true);
- Size = new ScrSpinBox( 0.5, 2048, this, SC_POINTS );
+ Size = new ScrSpinBox(0.5, 2048, this, SC_POINTS);
PrefsManager& prefsManager = PrefsManager::instance();
Size->setSuffix( unitGetSuffixFromIndex(SC_POINTS) );
Size->setValue(prefsManager.appPrefs.itemToolPrefs.textSize / 10.0);
@@ -1481,26 +1481,26 @@
sizeAction = addWidget(Size);
sizeAction->setVisible(true);
- lblScaleTxtH = new QLabel("", this);
+ lblScaleTxtH = new QLabel(this);
lblScaleTxtH->setPixmap(IconManager::instance().loadPixmap("textscaleh.png"));
scaleTxtHAction = addWidget(lblScaleTxtH);
scaleTxtHAction->setVisible(true);
- charScaleH = new ScrSpinBox( 10, 400, this, SC_PERCENT );
- charScaleH->setValue( 100 );
- charScaleH->setSuffix( unitGetSuffixFromIndex(SC_PERCENT) );
+ charScaleH = new ScrSpinBox(10, 400, this, SC_PERCENT);
+ charScaleH->setValue(100);
+ charScaleH->setSuffix(unitGetSuffixFromIndex(SC_PERCENT));
chScaleHAction = addWidget(charScaleH);
chScaleHAction->setVisible(true);
- lblScaleTxtV = new QLabel("", this);
+ lblScaleTxtV = new QLabel(this);
lblScaleTxtV->setPixmap(IconManager::instance().loadPixmap("textscalev.png"));
scaleTxtVAction = addWidget(lblScaleTxtV);
scaleTxtVAction->setVisible(true);
- charScaleV = new ScrSpinBox( 10, 400, this, SC_PERCENT );
- charScaleV->setValue( 100 );
- charScaleV->setSuffix( unitGetSuffixFromIndex(SC_PERCENT) );
+ charScaleV = new ScrSpinBox(10, 400, this, SC_PERCENT);
+ charScaleV->setValue(100);
+ charScaleV->setSuffix(unitGetSuffixFromIndex(SC_PERCENT));
chScaleVAction = addWidget(charScaleV);
chScaleVAction->setVisible(true);
More information about the scribus-commit
mailing list