r24207 by craig - Replace QString::KeepEmptyParts with Qt::KeepEmptyParts in

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 7 22:53:20 UTC 2020


Author: craig
Date: Sat Nov  7 22:53:19 2020
New Revision: 24207

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24207
Log:
Replace QString::KeepEmptyParts with Qt::KeepEmptyParts in
QString::split() usage

Modified:
    trunk/Scribus/scribus/plugins/gettext/textfilter/textfilter.cpp
    trunk/Scribus/scribus/ui/customfdialog.cpp

Modified: trunk/Scribus/scribus/plugins/gettext/textfilter/textfilter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24207&path=/trunk/Scribus/scribus/plugins/gettext/textfilter/textfilter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/textfilter/textfilter.cpp	(original)
+++ trunk/Scribus/scribus/plugins/gettext/textfilter/textfilter.cpp	Sat Nov  7 22:53:19 2020
@@ -125,7 +125,7 @@
 		writer->append(text);
 	else
 	{
-		QStringList list = text.split("\n", QString::KeepEmptyParts);
+		QStringList list = text.split("\n", Qt::KeepEmptyParts);
 		gtParagraphStyle *useStyle = nullptr;
 		for (int i = 0; i < static_cast<int>(list.size()); ++i)
 		{

Modified: trunk/Scribus/scribus/ui/customfdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24207&path=/trunk/Scribus/scribus/ui/customfdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/customfdialog.cpp	(original)
+++ trunk/Scribus/scribus/ui/customfdialog.cpp	Sat Nov  7 22:53:19 2020
@@ -563,7 +563,7 @@
 	QString   fileName;
 	QFileInfo tmp(selectedFile());
 	QString   fn(tmp.fileName());
-	QStringList fc = fn.split(".", QString::KeepEmptyParts);
+	QStringList fc = fn.split(".", Qt::KeepEmptyParts);
 	if (fc.count() > 0)
 		fileName = fc.at(0);
 	for (int a = 1; a < fc.count(); a++)




More information about the scribus-commit mailing list