[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue May 13 20:06:38 CEST 2003
CVS commit by staikos:
can't use a map here since order is important
M +3 -2 plugin.h 1.7
M +2 -2 pluginxmlparser.cpp 1.4
M +2 -1 pluginxmlparser.h 1.5
--- kdeextragear-2/kst/kst/plugin.h #1.6:1.7
@@ -20,4 +20,5 @@
#include <qmap.h>
+#include <qvaluelist.h>
#include <qpair.h>
#include <qstring.h>
@@ -71,6 +72,6 @@ public:
// Interface
- QMap<QString, IOValue> _inputs;
- QMap<QString, IOValue> _outputs;
+ QValueList<IOValue> _inputs;
+ QValueList<IOValue> _outputs;
// Parameter list
--- kdeextragear-2/kst/kst/pluginxmlparser.cpp #1.3:1.4
@@ -214,5 +214,5 @@ return 0;
-int PluginXMLParser::parseIO(const QDomElement& element, QMap<QString,PluginData::IOValue>& collection) {
+int PluginXMLParser::parseIO(const QDomElement& element, QValueList<PluginData::IOValue>& collection) {
QDomNode n = element.firstChild();
@@ -256,5 +256,5 @@ QDomNode n = element.firstChild();
}
- collection[iov._name] = iov;
+ collection.append(iov);
}
--- kdeextragear-2/kst/kst/pluginxmlparser.h #1.4:1.5
@@ -22,4 +22,5 @@
#include <qdom.h>
+#include <qvaluelist.h>
class QString;
@@ -46,5 +47,5 @@ private:
int parseInterface(const QDomElement& element);
int parseParalist(const QDomElement& element);
- int parseIO(const QDomElement& element, QMap<QString,PluginData::IOValue>& collection);
+ int parseIO(const QDomElement& element, QValueList<PluginData::IOValue>& collection);
PluginData _pluginData;
More information about the Kst
mailing list