From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksim/monitors/snmp/walker.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ksim/monitors/snmp/walker.cpp') diff --git a/ksim/monitors/snmp/walker.cpp b/ksim/monitors/snmp/walker.cpp index 593cd04..0aa6c0a 100644 --- a/ksim/monitors/snmp/walker.cpp +++ b/ksim/monitors/snmp/walker.cpp @@ -19,7 +19,7 @@ #include "walker.h" -#include +#include #include #include @@ -38,8 +38,8 @@ namespace static const uint walkerRefresh = 0; -Walker::Walker( const HostConfig &host, const Identifier &startOid, QObject *parent, const char *name ) - : QObject( parent, name ), m_stop( false ), m_oid( startOid ), m_session( host ) +Walker::Walker( const HostConfig &host, const Identifier &startOid, TQObject *parent, const char *name ) + : TQObject( parent, name ), m_stop( false ), m_oid( startOid ), m_session( host ) { m_timerId = startTimer( walkerRefresh ); start(); @@ -51,8 +51,8 @@ Walker::~Walker() m_stop = true; m_stopGuard.unlock(); - if ( QThread::running() ) - QThread::wait(); + if ( TQThread::running() ) + TQThread::wait(); std::for_each( m_results.begin(), m_results.end(), Deleter() ); } @@ -82,10 +82,10 @@ void Walker::run() } // cause finished signal to be emitted - QApplication::postEvent( this, new QCustomEvent( QEvent::User ) ); + TQApplication::postEvent( this, new TQCustomEvent( TQEvent::User ) ); } -void Walker::timerEvent( QTimerEvent *ev ) +void Walker::timerEvent( TQTimerEvent *ev ) { if ( ev->timerId() != m_timerId ) return; @@ -105,13 +105,13 @@ void Walker::timerEvent( QTimerEvent *ev ) delete result; } - if ( !QThread::running() && !result ) { + if ( !TQThread::running() && !result ) { killTimer( m_timerId ); m_timerId = 0; } } -void Walker::customEvent( QCustomEvent * ) +void Walker::customEvent( TQCustomEvent * ) { emit finished(); } -- cgit v1.2.1