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 --- kontact/interfaces/core.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kontact/interfaces/core.cpp') diff --git a/kontact/interfaces/core.cpp b/kontact/interfaces/core.cpp index 19ed8bad..6d048504 100644 --- a/kontact/interfaces/core.cpp +++ b/kontact/interfaces/core.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include using namespace Kontact; @@ -34,16 +34,16 @@ using namespace Kontact; class Core::Private { public: - QString lastErrorMessage; + TQString lastErrorMessage; }; -Core::Core( QWidget *parent, const char *name ) +Core::Core( TQWidget *parent, const char *name ) : KParts::MainWindow( parent, name ) { d = new Private; - QTimer* timer = new QTimer( this ); - mLastDate = QDate::currentDate(); - connect(timer, SIGNAL( timeout() ), SLOT( checkNewDay() ) ); + TQTimer* timer = new TQTimer( this ); + mLastDate = TQDate::currentDate(); + connect(timer, TQT_SIGNAL( timeout() ), TQT_SLOT( checkNewDay() ) ); timer->start( 1000*60 ); } @@ -56,7 +56,7 @@ KParts::ReadOnlyPart *Core::createPart( const char *libname ) { kdDebug(5601) << "Core::createPart(): " << libname << endl; - QMap::ConstIterator it; + TQMap::ConstIterator it; it = mParts.find( libname ); if ( it != mParts.end() ) return it.data(); @@ -66,13 +66,13 @@ KParts::ReadOnlyPart *Core::createPart( const char *libname ) KParts::ReadOnlyPart *part = KParts::ComponentFactory:: createPartInstanceFromLibrary - ( libname, this, 0, this, "kontact", QStringList(), &error ); + ( libname, this, 0, this, "kontact", TQStringList(), &error ); KParts::ReadOnlyPart *pimPart = dynamic_cast( part ); if ( pimPart ) { mParts.insert( libname, pimPart ); - QObject::connect( pimPart, SIGNAL( destroyed( QObject * ) ), - SLOT( slotPartDestroyed( QObject * ) ) ); + TQObject::connect( pimPart, TQT_SIGNAL( destroyed( TQObject * ) ), + TQT_SLOT( slotPartDestroyed( TQObject * ) ) ); } else { // TODO move to KParts::ComponentFactory switch( error ) { @@ -98,12 +98,12 @@ KParts::ReadOnlyPart *Core::createPart( const char *libname ) return pimPart; } -void Core::slotPartDestroyed( QObject * obj ) +void Core::slotPartDestroyed( TQObject * obj ) { // the part was deleted, we need to remove it from the part map to not return // a dangling pointer in createPart - QMap::Iterator end = mParts.end(); - QMap::Iterator it = mParts.begin(); + TQMap::Iterator end = mParts.end(); + TQMap::Iterator it = mParts.begin(); for ( ; it != end; ++it ) { if ( it.data() == obj ) { mParts.remove( it ); @@ -114,13 +114,13 @@ void Core::slotPartDestroyed( QObject * obj ) void Core::checkNewDay() { - if ( mLastDate != QDate::currentDate() ) - emit dayChanged( QDate::currentDate() ); + if ( mLastDate != TQDate::currentDate() ) + emit dayChanged( TQDate::currentDate() ); - mLastDate = QDate::currentDate(); + mLastDate = TQDate::currentDate(); } -QString Core::lastErrorMessage() const +TQString Core::lastErrorMessage() const { return d->lastErrorMessage; } -- cgit v1.2.3