summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyaccountcompletion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneyaccountcompletion.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyaccountcompletion.cpp28
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);
}
}