diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/interfaces/core.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/interfaces/core.cpp')
-rw-r--r-- | kontact/interfaces/core.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kontact/interfaces/core.cpp b/kontact/interfaces/core.cpp index 19ed8bade..6d048504b 100644 --- a/kontact/interfaces/core.cpp +++ b/kontact/interfaces/core.cpp @@ -26,7 +26,7 @@ #include <kparts/part.h> #include <kparts/componentfactory.h> #include <kdebug.h> -#include <qtimer.h> +#include <tqtimer.h> #include <klocale.h> 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<QCString,KParts::ReadOnlyPart *>::ConstIterator it; + TQMap<TQCString,KParts::ReadOnlyPart *>::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<KParts::ReadOnlyPart> - ( libname, this, 0, this, "kontact", QStringList(), &error ); + ( libname, this, 0, this, "kontact", TQStringList(), &error ); KParts::ReadOnlyPart *pimPart = dynamic_cast<KParts::ReadOnlyPart*>( 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<QCString, KParts::ReadOnlyPart*>::Iterator end = mParts.end(); - QMap<QCString, KParts::ReadOnlyPart*>::Iterator it = mParts.begin(); + TQMap<TQCString, KParts::ReadOnlyPart*>::Iterator end = mParts.end(); + TQMap<TQCString, KParts::ReadOnlyPart*>::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; } |