summaryrefslogtreecommitdiffstats
path: root/kontact/interfaces/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/interfaces/core.cpp')
-rw-r--r--kontact/interfaces/core.cpp34
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;
}