From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knotes/knotesnetrecv.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'knotes/knotesnetrecv.cpp') diff --git a/knotes/knotesnetrecv.cpp b/knotes/knotesnetrecv.cpp index 65edb2cb5..0a261252b 100644 --- a/knotes/knotesnetrecv.cpp +++ b/knotes/knotesnetrecv.cpp @@ -30,10 +30,10 @@ your version. *******************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -58,27 +58,27 @@ using namespace KNetwork; KNotesNetworkReceiver::KNotesNetworkReceiver( KBufferedSocket *s ) - : QObject(), - m_buffer( new QByteArray() ), m_sock( s ) + : TQObject(), + m_buffer( new TQByteArray() ), m_sock( s ) { - QString date = KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), true, false ); + TQString date = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, false ); // Add the remote IP or hostname and the date to the title, to help the // user guess who wrote it. - m_titleAddon = QString(" [%1, %2]") + m_titleAddon = TQString(" [%1, %2]") .arg( m_sock->peerAddress().nodeName() ) .arg( date ); // Setup the communications - connect( m_sock, SIGNAL(readyRead()), SLOT(slotDataAvailable()) ); - connect( m_sock, SIGNAL(closed()), SLOT(slotConnectionClosed()) ); - connect( m_sock, SIGNAL(gotError( int )), SLOT(slotError( int )) ); + connect( m_sock, TQT_SIGNAL(readyRead()), TQT_SLOT(slotDataAvailable()) ); + connect( m_sock, TQT_SIGNAL(closed()), TQT_SLOT(slotConnectionClosed()) ); + connect( m_sock, TQT_SIGNAL(gotError( int )), TQT_SLOT(slotError( int )) ); m_sock->enableRead( true ); // Setup the timer - m_timer = new QTimer( this, "m_timer" ); - connect( m_timer, SIGNAL(timeout()), SLOT(slotReceptionTimeout()) ); + m_timer = new TQTimer( this, "m_timer" ); + connect( m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotReceptionTimeout()) ); m_timer->start( MAXTIME, true ); } @@ -127,11 +127,11 @@ void KNotesNetworkReceiver::slotConnectionClosed() { if ( m_timer->isActive() ) { - QString noteText = QString( *m_buffer ).stripWhiteSpace(); + TQString noteText = TQString( *m_buffer ).stripWhiteSpace(); // First line is the note title or, in case of ATnotes, the id - int pos = noteText.find( QRegExp("[\r\n]") ); - QString noteTitle = noteText.left( pos ).stripWhiteSpace() + m_titleAddon; + int pos = noteText.find( TQRegExp("[\r\n]") ); + TQString noteTitle = noteText.left( pos ).stripWhiteSpace() + m_titleAddon; noteText = noteText.mid( pos ).stripWhiteSpace(); -- cgit v1.2.1