[Kst] branches/work/kst/portto4/kst/src/libkst
Adam Treat
treat at kde.org
Thu Feb 15 20:40:42 CET 2007
SVN commit 633926 by treat:
* QStringList::split() to QString::split()
M +2 -2 kstdateparser.cpp
M +1 -1 kstobject.h
--- branches/work/kst/portto4/kst/src/libkst/kstdateparser.cpp #633925:633926
@@ -61,7 +61,7 @@
ExtDateTime parsePlanckDate(const QString& dateString) {
- QStringList secondSplit = QStringList::split('.', dateString);
+ QStringList secondSplit = dateString.split('.');
if (secondSplit.isEmpty() || secondSplit.count() > 2) {
return ExtDateTime();
}
@@ -71,7 +71,7 @@
seconds = secondSplit[1].toUInt();
}
- QStringList mainSplit = QStringList::split(':', secondSplit[0]);
+ QStringList mainSplit = secondSplit[0].split(':');
ExtDateTime edt = ExtDateTime::currentDateTime();
int offset = ExtDateTime::currentDateTime(Qt::UTC).toTime_t() - edt.toTime_t();
ExtDate d = edt.date();
--- branches/work/kst/portto4/kst/src/libkst/kstobject.h #633925:633926
@@ -150,7 +150,7 @@
// factory for String representation
static KstObjectTag fromString(const QString& str) {
- QStringList l = QStringList::split(tagSeparator, str);
+ QStringList l = str.split(tagSeparator);
if (l.isEmpty()) {
return invalidTag;
}
More information about the Kst
mailing list