r23205 by jghali - Limit hyphenation character field length to 1 in text properties and style manager
scribus-commit
scribus-commit at lists.scribus.net
Sun Sep 22 09:26:59 UTC 2019
Author: jghali
Date: Sun Sep 22 09:26:59 2019
New Revision: 23205
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23205
Log:
Limit hyphenation character field length to 1 in text properties and style manager
Modified:
trunk/Scribus/scribus/ui/propertywidget_hyphenation.cpp
trunk/Scribus/scribus/ui/smcstylewidget.cpp
Modified: trunk/Scribus/scribus/ui/propertywidget_hyphenation.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23205&path=/trunk/Scribus/scribus/ui/propertywidget_hyphenation.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_hyphenation.cpp (original)
+++ trunk/Scribus/scribus/ui/propertywidget_hyphenation.cpp Sun Sep 22 09:26:59 2019
@@ -26,6 +26,7 @@
setFrameStyle(QFrame::Box | QFrame::Plain);
setLineWidth(1);
+ hyphenCharLineEdit->setMaxLength(1);
layout()->setAlignment( Qt::AlignTop );
languageChange();
}
Modified: trunk/Scribus/scribus/ui/smcstylewidget.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23205&path=/trunk/Scribus/scribus/ui/smcstylewidget.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/smcstylewidget.cpp (original)
+++ trunk/Scribus/scribus/ui/smcstylewidget.cpp Sun Sep 22 09:26:59 2019
@@ -51,6 +51,8 @@
strokeShade_->setEnabled(false);
strokeColor_->setEnabled(false);
fontfeaturesSetting->resetFontFeatures();
+
+ hyphenCharLineEdit->setMaxLength(1);
connect(effects_, SIGNAL(State(int)), this, SLOT(slotColorChange()));
connect(fontFace_, SIGNAL(fontSelected(QString)), this, SLOT(slotEnableFontFeatures(QString)));
More information about the scribus-commit
mailing list