summaryrefslogtreecommitdiffstats
path: root/kabc/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kabc/tests
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/tests')
-rw-r--r--kabc/tests/kabcargl.cpp2
-rw-r--r--kabc/tests/testldapclient.cpp2
-rw-r--r--kabc/tests/testldapclient.h2
-rw-r--r--kabc/tests/testlock.cpp8
-rw-r--r--kabc/tests/testlock.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/kabc/tests/kabcargl.cpp b/kabc/tests/kabcargl.cpp
index b57724c15..2cd759d1b 100644
--- a/kabc/tests/kabcargl.cpp
+++ b/kabc/tests/kabcargl.cpp
@@ -56,7 +56,7 @@ int main(int argc,char **argv)
f.close();
text = TQString::fromUtf8( text.local8Bit() );
- text.replace( "\n", "\r\n" );
+ text.tqreplace( "\n", "\r\n" );
if ( !f.open( IO_WriteOnly ) ) {
kdDebug() << "Error opening file '" << filename << "' for writing." << endl;
diff --git a/kabc/tests/testldapclient.cpp b/kabc/tests/testldapclient.cpp
index 2fa6a1c72..9051bdc1c 100644
--- a/kabc/tests/testldapclient.cpp
+++ b/kabc/tests/testldapclient.cpp
@@ -143,7 +143,7 @@ void TestLDAPClient::slotLDAPResult( const KABC::LdapObject& obj )
assert( !obj.attrs[ "mail" ].isEmpty() );
TQString mail = join( obj.attrs[ "mail" ], ", " );
kdDebug() << " mail:" << mail << endl;
- assert( mail.contains( '@' ) );
+ assert( mail.tqcontains( '@' ) );
}
void TestLDAPClient::slotLDAPError( const TQString& err )
diff --git a/kabc/tests/testldapclient.h b/kabc/tests/testldapclient.h
index ea1293b51..1995914c3 100644
--- a/kabc/tests/testldapclient.h
+++ b/kabc/tests/testldapclient.h
@@ -24,7 +24,7 @@
#include "../ldapclient.h"
typedef KABC::LdapClient LdapClient;
-class TestLDAPClient : public QObject
+class TestLDAPClient : public TQObject
{
Q_OBJECT
diff --git a/kabc/tests/testlock.cpp b/kabc/tests/testlock.cpp
index 4674606e0..380c9ab3a 100644
--- a/kabc/tests/testlock.cpp
+++ b/kabc/tests/testlock.cpp
@@ -72,8 +72,8 @@ LockWidget::LockWidget( const TQString &identifier )
TQLabel *resourceIdentifier = new TQLabel( identifier, this );
identifierLayout->addWidget( resourceIdentifier );
- mStatus = new TQLabel( "Status: Unlocked", this );
- topLayout->addWidget( mStatus );
+ mtqStatus = new TQLabel( "tqStatus: Unlocked", this );
+ topLayout->addWidget( mtqStatus );
TQPushButton *button = new TQPushButton( "Lock", this );
topLayout->addWidget( button );
@@ -139,7 +139,7 @@ void LockWidget::lock()
if ( !mLock->lock() ) {
KMessageBox::sorry( this, mLock->error() );
} else {
- mStatus->setText( "Status: Locked" );
+ mtqStatus->setText( "tqStatus: Locked" );
}
}
@@ -148,7 +148,7 @@ void LockWidget::unlock()
if ( !mLock->unlock() ) {
KMessageBox::sorry( this, mLock->error() );
} else {
- mStatus->setText( "Status: Unlocked" );
+ mtqStatus->setText( "tqStatus: Unlocked" );
}
}
diff --git a/kabc/tests/testlock.h b/kabc/tests/testlock.h
index 92244cd30..7162bd203 100644
--- a/kabc/tests/testlock.h
+++ b/kabc/tests/testlock.h
@@ -44,7 +44,7 @@ class KABC_EXPORT LockWidget : public QWidget
private:
KABC::Lock *mLock;
- TQLabel *mStatus;
+ TQLabel *mtqStatus;
TQListView *mLockView;
};