[Kst] branches/work/kst/portto4/kst/src/libkst
Adam Treat
treat at kde.org
Thu Feb 15 20:55:02 CET 2007
SVN commit 633935 by treat:
* QString::findRev --> QString::lastIndexOf
M +2 -2 kstobjectcollection.h
--- branches/work/kst/portto4/kst/src/libkst/kstobjectcollection.h #633934:633935
@@ -623,7 +623,7 @@
// previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
// now, they are PSD1-ABCDE/freq
QString newTag = x.tagString();
- newTag.replace(newTag.findRev('-'), 1, KstObjectTag::tagSeparator);
+ newTag.replace(newTag.lastIndexOf('-'), 1, KstObjectTag::tagSeparator);
obj = retrieveObject(KstObjectTag::fromString(newTag));
if (obj) {
return _list.find(obj);
@@ -647,7 +647,7 @@
// previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
// now, they are PSD1-ABCDE/freq
QString newTag = x.tagString();
- newTag.replace(newTag.findRev('-'), 1, KstObjectTag::tagSeparator);
+ newTag.replace(newTag.lastIndexOf('-'), 1, KstObjectTag::tagSeparator);
obj = retrieveObject(KstObjectTag::fromString(newTag));
if (obj) {
return _list.find(obj);
More information about the Kst
mailing list