From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/libkopete/kopeteblacklister.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kopete/libkopete/kopeteblacklister.cpp') diff --git a/kopete/libkopete/kopeteblacklister.cpp b/kopete/libkopete/kopeteblacklister.cpp index 29dbf727..cf6ff95e 100644 --- a/kopete/libkopete/kopeteblacklister.cpp +++ b/kopete/libkopete/kopeteblacklister.cpp @@ -34,15 +34,15 @@ public: }; -BlackLister::BlackLister(const TQString &protocolId, const TQString &accountId, TQObject *parent, const char *name) - : TQObject(parent, name), d( new Private ) +BlackLister::BlackLister(const TQString &protocolId, const TQString &accountId, TQObject *tqparent, const char *name) + : TQObject(tqparent, name), d( new Private ) { KConfig *config = KGlobal::config(); d->owner = accountId; d->protocol = protocolId; config->setGroup("BlackLister"); - d->blacklist = config->readListEntry( d->protocol + TQString::fromLatin1("_") + d->owner ); + d->blacklist = config->readListEntry( d->protocol + TQString::tqfromLatin1("_") + d->owner ); } BlackLister::~BlackLister() @@ -53,7 +53,7 @@ BlackLister::~BlackLister() bool BlackLister::isBlocked(const TQString &contactId) { - return (d->blacklist.find( contactId ) != d->blacklist.end() ); + return (d->blacklist.tqfind( contactId ) != d->blacklist.end() ); } bool BlackLister::isBlocked(Contact *contact) @@ -90,7 +90,7 @@ void BlackLister::saveToDisk() KConfig *config = KGlobal::config(); config->setGroup("BlackLister"); - config->writeEntry( d->protocol + TQString::fromLatin1("_") + d->owner, d->blacklist ); + config->writeEntry( d->protocol + TQString::tqfromLatin1("_") + d->owner, d->blacklist ); config->sync(); } -- cgit v1.2.1