diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kmymoneyaccountcompletion.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/widgets/kmymoneyaccountcompletion.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneyaccountcompletion.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccountcompletion.cpp b/kmymoney2/widgets/kmymoneyaccountcompletion.cpp index bb2af2e..6de78e5 100644 --- a/kmymoney2/widgets/kmymoneyaccountcompletion.cpp +++ b/kmymoney2/widgets/kmymoneyaccountcompletion.cpp @@ -23,8 +23,8 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qapplication.h> -#include <qregexp.h> +#include <tqapplication.h> +#include <tqregexp.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -37,8 +37,8 @@ #include "kmymoneyaccountcompletion.h" #include <kmymoney/mymoneyfile.h> -kMyMoneyAccountCompletion::kMyMoneyAccountCompletion(QWidget *parent, const char *name ) : - kMyMoneyCompletion(parent, name) +kMyMoneyAccountCompletion::kMyMoneyAccountCompletion(TQWidget *tqparent, const char *name ) : + kMyMoneyCompletion(tqparent, name) { delete m_selector; m_selector = new kMyMoneyAccountSelector(this, 0, 0, false); @@ -62,32 +62,32 @@ kMyMoneyAccountCompletion::~kMyMoneyAccountCompletion() { } -void kMyMoneyAccountCompletion::slotMakeCompletion(const QString& txt) +void kMyMoneyAccountCompletion::slotMakeCompletion(const TQString& txt) { // if(txt.isEmpty() || txt.length() == 0) // return; int cnt = 0; - if(txt.contains(MyMoneyFile::AccountSeperator) == 0) { - m_lastCompletion = QRegExp(QRegExp::escape(txt.stripWhiteSpace()), false); + if(txt.tqcontains(MyMoneyFile::AccountSeperator) == 0) { + m_lastCompletion = TQRegExp(TQRegExp::escape(txt.stripWhiteSpace()), false); cnt = selector()->slotMakeCompletion(m_lastCompletion); } else { - QStringList parts = QStringList::split(MyMoneyFile::AccountSeperator, txt); - QString pattern("^"); - QStringList::iterator it; + TQStringList parts = TQStringList::split(MyMoneyFile::AccountSeperator, txt); + TQString pattern("^"); + TQStringList::iterator it; for(it = parts.begin(); it != parts.end(); ++it) { if(pattern.length() > 1) pattern += MyMoneyFile::AccountSeperator; - pattern += QRegExp::escape(QString(*it).stripWhiteSpace()) + ".*"; + pattern += TQRegExp::escape(TQString(*it).stripWhiteSpace()) + ".*"; } pattern += "$"; - m_lastCompletion = QRegExp(pattern, false); + m_lastCompletion = TQRegExp(pattern, false); cnt = selector()->slotMakeCompletion(m_lastCompletion); // if we don't have a match, we try it again, but this time // we add a wildcard for the top level if(cnt == 0) { - pattern = pattern.insert(1, QString(".*")+MyMoneyFile::AccountSeperator); - m_lastCompletion = QRegExp(pattern, false); + pattern = pattern.insert(1, TQString(".*")+MyMoneyFile::AccountSeperator); + m_lastCompletion = TQRegExp(pattern, false); cnt = selector()->slotMakeCompletion(m_lastCompletion); } } |