summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneypayee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneypayee.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneypayee.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kmymoney2/mymoney/mymoneypayee.cpp b/kmymoney2/mymoney/mymoneypayee.cpp
index cbfbbb7..7023e51 100644
--- a/kmymoney2/mymoney/mymoneypayee.cpp
+++ b/kmymoney2/mymoney/mymoneypayee.cpp
@@ -19,7 +19,7 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstringlist.h>
+#include <tqstringlist.h>
// ----------------------------------------------------------------------------
// Project Includes
@@ -37,7 +37,7 @@ MyMoneyPayee::MyMoneyPayee() :
{
}
-MyMoneyPayee::MyMoneyPayee(const QString& id, const MyMoneyPayee& payee) :
+MyMoneyPayee::MyMoneyPayee(const TQString& id, const MyMoneyPayee& payee) :
m_matchingEnabled(false),
m_usingMatchKey(false),
m_matchKeyIgnoreCase(true)
@@ -46,9 +46,9 @@ MyMoneyPayee::MyMoneyPayee(const QString& id, const MyMoneyPayee& payee) :
m_id = id;
}
-MyMoneyPayee::MyMoneyPayee(const QString& name, const QString& address,
- const QString& city, const QString& state, const QString& postcode,
- const QString& telephone, const QString& email) :
+MyMoneyPayee::MyMoneyPayee(const TQString& name, const TQString& address,
+ const TQString& city, const TQString& state, const TQString& postcode,
+ const TQString& telephone, const TQString& email) :
m_matchingEnabled(false),
m_usingMatchKey(false),
m_matchKeyIgnoreCase(true)
@@ -62,7 +62,7 @@ MyMoneyPayee::MyMoneyPayee(const QString& name, const QString& address,
m_email = email;
}
-MyMoneyPayee::MyMoneyPayee(const QDomElement& node) :
+MyMoneyPayee::MyMoneyPayee(const TQDomElement& node) :
MyMoneyObject(node)
{
if ("PAYEE" != node.tagName()) {
@@ -89,13 +89,13 @@ MyMoneyPayee::MyMoneyPayee(const QDomElement& node) :
m_defaultAccountId = node.attribute("defaultaccountid");
}
- QDomNodeList nodeList = node.elementsByTagName("ADDRESS");
+ TQDomNodeList nodeList = node.elementsByTagName("ADDRESS");
if(nodeList.count() == 0) {
- QString msg = QString("No ADDRESS in payee %1").arg(m_name);
+ TQString msg = TQString("No ADDRESS in payee %1").tqarg(m_name);
throw new MYMONEYEXCEPTION(msg);
}
- QDomElement addrNode = nodeList.item(0).toElement();
+ TQDomElement addrNode = nodeList.item(0).toElement();
m_address = addrNode.attribute("street");
m_city = addrNode.attribute("city");
m_postcode = addrNode.attribute("postcode");
@@ -131,9 +131,9 @@ bool MyMoneyPayee::operator == (const MyMoneyPayee& right) const
((m_defaultAccountId.length() == 0 && right.m_defaultAccountId.length() == 0) || m_defaultAccountId == right.m_defaultAccountId) );
}
-void MyMoneyPayee::writeXML(QDomDocument& document, QDomElement& parent) const
+void MyMoneyPayee::writeXML(TQDomDocument& document, TQDomElement& tqparent) const
{
- QDomElement el = document.createElement("PAYEE");
+ TQDomElement el = document.createElement("PAYEE");
writeBaseXML(document, el);
@@ -155,7 +155,7 @@ void MyMoneyPayee::writeXML(QDomDocument& document, QDomElement& parent) const
el.setAttribute("defaultaccountid", m_defaultAccountId);
}
- QDomElement address = document.createElement("ADDRESS");
+ TQDomElement address = document.createElement("ADDRESS");
address.setAttribute("street", m_address);
address.setAttribute("city", m_city);
address.setAttribute("postcode", m_postcode);
@@ -164,16 +164,16 @@ void MyMoneyPayee::writeXML(QDomDocument& document, QDomElement& parent) const
el.appendChild(address);
- parent.appendChild(el);
+ tqparent.appendChild(el);
}
-bool MyMoneyPayee::hasReferenceTo(const QString& id) const
+bool MyMoneyPayee::hasReferenceTo(const TQString& id) const
{
return id == m_defaultAccountId;
}
-MyMoneyPayee::payeeMatchType MyMoneyPayee::matchData(bool& ignorecase, QStringList& keys) const
+MyMoneyPayee::payeeMatchType MyMoneyPayee::matchData(bool& ignorecase, TQStringList& keys) const
{
payeeMatchType type = matchDisabled;
keys.clear();
@@ -183,25 +183,25 @@ MyMoneyPayee::payeeMatchType MyMoneyPayee::matchData(bool& ignorecase, QStringLi
{
type = m_usingMatchKey ? matchKey : matchName;
if(type == matchKey)
- keys = QStringList::split(";", m_matchKey);
+ keys = TQStringList::split(";", m_matchKey);
}
return type;
}
-MyMoneyPayee::payeeMatchType MyMoneyPayee::matchData(bool& ignorecase, QString& keyString) const
+MyMoneyPayee::payeeMatchType MyMoneyPayee::matchData(bool& ignorecase, TQString& keyString) const
{
- QStringList keys;
+ TQStringList keys;
payeeMatchType type = matchData(ignorecase, keys);
keyString = keys.join(";");
return type;
}
-void MyMoneyPayee::setMatchData(payeeMatchType type, bool ignorecase, const QStringList& keys)
+void MyMoneyPayee::setMatchData(payeeMatchType type, bool ignorecase, const TQStringList& keys)
{
m_matchingEnabled = (type != matchDisabled);
m_matchKeyIgnoreCase = ignorecase;
- m_matchKey = QString();
+ m_matchKey = TQString();
if ( m_matchingEnabled )
{
@@ -212,9 +212,9 @@ void MyMoneyPayee::setMatchData(payeeMatchType type, bool ignorecase, const QStr
}
}
-void MyMoneyPayee::setMatchData(payeeMatchType type, bool ignorecase, const QString& keys)
+void MyMoneyPayee::setMatchData(payeeMatchType type, bool ignorecase, const TQString& keys)
{
- setMatchData(type, ignorecase, QStringList::split(";", keys));
+ setMatchData(type, ignorecase, TQStringList::split(";", keys));
}
// vim:cin:si:ai:et:ts=2:sw=2: