summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp b/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
index 4df855b..382893a 100644
--- a/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
+++ b/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
@@ -28,7 +28,7 @@ MyMoneyKeyValueContainer::MyMoneyKeyValueContainer()
{
}
-MyMoneyKeyValueContainer::MyMoneyKeyValueContainer(const QDomElement& node)
+MyMoneyKeyValueContainer::MyMoneyKeyValueContainer(const TQDomElement& node)
{
if(!node.isNull()) {
if("KEYVALUEPAIRS" != node.tagName())
@@ -36,9 +36,9 @@ MyMoneyKeyValueContainer::MyMoneyKeyValueContainer(const QDomElement& node)
m_kvp.clear();
- QDomNodeList nodeList = node.elementsByTagName("PAIR");
+ TQDomNodeList nodeList = node.elementsByTagName("PAIR");
for(unsigned int i = 0; i < nodeList.count(); ++i) {
- const QDomElement& el(nodeList.item(i).toElement());
+ const TQDomElement& el(nodeList.item(i).toElement());
m_kvp[el.attribute("key")] = el.attribute("value");
}
}
@@ -48,32 +48,32 @@ MyMoneyKeyValueContainer::~MyMoneyKeyValueContainer()
{
}
-const QString& MyMoneyKeyValueContainer::value(const QString& key) const
+const TQString& MyMoneyKeyValueContainer::value(const TQString& key) const
{
- QMap<QString, QString>::ConstIterator it;
+ TQMap<TQString, TQString>::ConstIterator it;
- it = m_kvp.find(key);
+ it = m_kvp.tqfind(key);
if(it != m_kvp.end())
return (*it);
- return QString::null;
+ return TQString();
}
-void MyMoneyKeyValueContainer::setValue(const QString& key, const QString& value)
+void MyMoneyKeyValueContainer::setValue(const TQString& key, const TQString& value)
{
m_kvp[key] = value;
}
-void MyMoneyKeyValueContainer::setPairs(const QMap<QString, QString>& list)
+void MyMoneyKeyValueContainer::setPairs(const TQMap<TQString, TQString>& list)
{
m_kvp = list;
}
-void MyMoneyKeyValueContainer::deletePair(const QString& key)
+void MyMoneyKeyValueContainer::deletePair(const TQString& key)
{
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::Iterator it;
- it = m_kvp.find(key);
+ it = m_kvp.tqfind(key);
if(it != m_kvp.end())
m_kvp.remove(it);
}
@@ -85,7 +85,7 @@ void MyMoneyKeyValueContainer::clear(void)
bool MyMoneyKeyValueContainer::operator == (const MyMoneyKeyValueContainer& right) const
{
- QMap<QString, QString>::ConstIterator it_a, it_b;
+ TQMap<TQString, TQString>::ConstIterator it_a, it_b;
it_a = m_kvp.begin();
it_b = right.m_kvp.begin();
@@ -101,20 +101,20 @@ bool MyMoneyKeyValueContainer::operator == (const MyMoneyKeyValueContainer& righ
return (it_a == m_kvp.end() && it_b == right.m_kvp.end());
}
-void MyMoneyKeyValueContainer::writeXML(QDomDocument& document, QDomElement& parent) const
+void MyMoneyKeyValueContainer::writeXML(TQDomDocument& document, TQDomElement& tqparent) const
{
if(m_kvp.count() != 0) {
- QDomElement el = document.createElement("KEYVALUEPAIRS");
+ TQDomElement el = document.createElement("KEYVALUEPAIRS");
- QMap<QString, QString>::ConstIterator it;
+ TQMap<TQString, TQString>::ConstIterator it;
for(it = m_kvp.begin(); it != m_kvp.end(); ++it)
{
- QDomElement pair = document.createElement("PAIR");
+ TQDomElement pair = document.createElement("PAIR");
pair.setAttribute("key", it.key());
pair.setAttribute("value", it.data());
el.appendChild(pair);
}
- parent.appendChild(el);
+ tqparent.appendChild(el);
}
}