[Kst] branches/work/kst/hierarchy/kst/src/libkst
Eli Fidler
eli at staikos.net
Tue Dec 12 17:53:41 CET 2006
SVN commit 612801 by fidler:
parameterize tag separator
M +3 -3 kstobjectcollection.h
--- branches/work/kst/hierarchy/kst/src/libkst/kstobjectcollection.h #612800:612801
@@ -19,7 +19,7 @@
#define KSTOBJECTCOLLECTION_H
// NAMEDEBUG: 0 for no debug, 1 for some debug, 2 for more debug, 3 for all debug
-#define NAMEDEBUG 2
+#define NAMEDEBUG 0
#include "ksdebug.h"
#include "kstobject.h"
@@ -541,7 +541,7 @@
// previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
// now, they are PSD1-ABCDE/freq
QString newTag = x;
- newTag.replace(newTag.findRev('-'), 1, '/');
+ newTag.replace(newTag.findRev(KstObjectTag::tagSeparatorReplacement), 1, KstObjectTag::tagSeparator);
obj = retrieveObject(KstObjectTag::fromString(newTag));
if (obj) {
return _list.find(obj);
@@ -560,7 +560,7 @@
// previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
// now, they are PSD1-ABCDE/freq
QString newTag = x;
- newTag.replace(newTag.findRev('-'), 1, '/');
+ newTag.replace(newTag.findRev(KstObjectTag::tagSeparatorReplacement), 1, KstObjectTag::tagSeparator);
obj = retrieveObject(KstObjectTag::fromString(newTag));
if (obj) {
return _list.find(obj);
More information about the Kst
mailing list