[Kst] branches/work/kst/hierarchy/kst/src/libkstapp
Eli Fidler
eli at staikos.net
Thu Dec 7 19:04:35 CET 2006
SVN commit 611327 by fidler:
fix tags
M +1 -0 ksteqdialog_i.cpp
M +1 -0 ksteventmonitor_i.cpp
--- branches/work/kst/hierarchy/kst/src/libkstapp/ksteqdialog_i.cpp #611326:611327
@@ -145,6 +145,7 @@
QString tag_name = _tagName->text();
QString etext = _w->_equation->text();
etext.remove(QRegExp("[^a-zA-Z0-9\\(\\)\\+\\-\\*/\\%\\^\\|\\&\\!<>=_.]"));
+ etext.replace(KstObjectTag::tagSeparator, "_");
if (etext.length() > 12) {
etext.truncate(12);
etext += "...";
--- branches/work/kst/hierarchy/kst/src/libkstapp/ksteventmonitor_i.cpp #611326:611327
@@ -178,6 +178,7 @@
bool KstEventMonitorI::newObject() {
QString tag_name = _tagName->text();
tag_name.replace("<New_Event>", _w->lineEditEquation->text());
+ tag_name.replace(KstObjectTag::tagSeparator, "_");
// verify that the event name is unique
if (KstData::self()->dataTagNameNotUnique(tag_name)) {
More information about the Kst
mailing list