[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Apr 27 00:31:33 CEST 2004
CVS commit by arwalker:
Have a plugin keep track of whether it is a fit, and if so whether it is weighted.
M +1 -0 plugin.cpp 1.18
M +1 -0 plugin.h 1.19
M +2 -0 pluginxmlparser.cpp 1.16
--- kdeextragear-2/kst/kst/plugin.cpp #1.17:1.18
@@ -119,4 +119,5 @@ void Plugin::Data::clear() {
_state = Unknown;
_isFit = false;
+ _isFitWeighted = false;
_inputs.clear();
--- kdeextragear-2/kst/kst/plugin.h #1.18:1.19
@@ -99,4 +99,5 @@ public:
bool _localdata;
bool _isFit;
+ bool _isFitWeighted;
QString _name;
QString _author;
--- kdeextragear-2/kst/kst/pluginxmlparser.cpp #1.15:1.16
@@ -69,4 +69,5 @@ static const QString QS_modulename = QSt
static const QString QS_author = QString::fromLatin1("author");
static const QString QS_fit = QString::fromLatin1("fit");
+static const QString QS_weighted = QString::fromLatin1("weighted");
static const QString QS_description = QString::fromLatin1("description");
static const QString QS_descr = QString::fromLatin1("descr");
@@ -156,4 +157,5 @@ QDomNode n = element.firstChild();
} else if (tn == QS_fit) {
_pluginData._isFit = true;
+ _pluginData._isFitWeighted = (bool)e.attribute(QS_weighted).toInt();
} else if (tn == QS_version) {
_pluginData._version = QString("%1.%2").arg(e.attribute(QS_major))
More information about the Kst
mailing list