[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 10 18:09:51 CET 2004
CVS commit by staikos:
- don't add null entries to the data source list
- escape scalar tag names
M +3 -1 datawizard.ui.h 1.14
M +3 -1 kstscalar.cpp 1.19
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.13:1.14
@@ -81,6 +81,8 @@ void DataWizard::sourceChanged( const QS
if (!ds && txt != "stdin" && txt != "-") { // FIXME: deal with stdin properly
ds = KstDataSource::loadSource(txt);
+ if (ds) {
KST::dataSourceList.append(ds);
}
+ }
if (ds && _ds == ds) {
--- kdeextragear-2/kst/kst/kstscalar.cpp #1.18:1.19
@@ -21,4 +21,6 @@
#include <klocale.h>
+#include <qstylesheet.h>
+
/** Create the base scalar */
KstScalar::KstScalar(const QString& in_tag, double val) : KstObject(), _orphan(false) {
@@ -71,5 +73,5 @@ KstObject::UpdateType KstScalar::update(
void KstScalar::save(QTextStream &ts) {
- ts << " <tag>" << tagName() << "</tag>" << endl;
+ ts << " <tag>" << QStyleSheet::escape(tagName()) << "</tag>" << endl;
ts << " <value>" << value() << "</value>" << endl;
}
More information about the Kst
mailing list