summaryrefslogtreecommitdiffstats
path: root/kitchensync/libqopensync/callbackhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/libqopensync/callbackhandler.cpp')
-rw-r--r--kitchensync/libqopensync/callbackhandler.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kitchensync/libqopensync/callbackhandler.cpp b/kitchensync/libqopensync/callbackhandler.cpp
index 86f279f14..504afea99 100644
--- a/kitchensync/libqopensync/callbackhandler.cpp
+++ b/kitchensync/libqopensync/callbackhandler.cpp
@@ -23,7 +23,7 @@
#include <libqopensync/engine.h>
-#include <qapplication.h>
+#include <tqapplication.h>
#include "callbackhandler.h"
@@ -33,7 +33,7 @@ class CallbackHandler::ConflictEvent : public QCustomEvent
{
public:
ConflictEvent( const SyncMapping& mapping )
- : QCustomEvent( ConflictEventType ), mMapping( mapping )
+ : TQCustomEvent( ConflictEventType ), mMapping( mapping )
{
}
@@ -47,7 +47,7 @@ class CallbackHandler::ChangeEvent : public QCustomEvent
{
public:
ChangeEvent( const SyncChangeUpdate& change )
- : QCustomEvent( ChangeEventType ), mChange( change )
+ : TQCustomEvent( ChangeEventType ), mChange( change )
{
}
@@ -61,7 +61,7 @@ class CallbackHandler::MappingEvent : public QCustomEvent
{
public:
MappingEvent( const SyncMappingUpdate& mapping )
- : QCustomEvent( MappingEventType ), mMapping( mapping )
+ : TQCustomEvent( MappingEventType ), mMapping( mapping )
{
}
@@ -75,7 +75,7 @@ class CallbackHandler::EngineEvent : public QCustomEvent
{
public:
EngineEvent( const SyncEngineUpdate& engine )
- : QCustomEvent( EngineEventType ), mEngine( engine )
+ : TQCustomEvent( EngineEventType ), mEngine( engine )
{
}
@@ -89,7 +89,7 @@ class CallbackHandler::MemberEvent : public QCustomEvent
{
public:
MemberEvent( const SyncMemberUpdate& member )
- : QCustomEvent( MemberEventType ), mMember( member )
+ : TQCustomEvent( MemberEventType ), mMember( member )
{
}
@@ -123,21 +123,21 @@ Engine* CallbackHandler::engine() const
return mEngine;
}
-void CallbackHandler::customEvent( QCustomEvent *event )
+void CallbackHandler::customEvent( TQCustomEvent *event )
{
- if ( event->type() == static_cast<QEvent::Type>( ConflictEventType ) ) {
+ if ( event->type() == static_cast<TQEvent::Type>( ConflictEventType ) ) {
ConflictEvent *conflictEvent = static_cast<ConflictEvent*>( event );
emit conflict( conflictEvent->mapping() );
- } else if ( event->type() == static_cast<QEvent::Type>( ChangeEventType ) ) {
+ } else if ( event->type() == static_cast<TQEvent::Type>( ChangeEventType ) ) {
ChangeEvent *changeEvent = static_cast<ChangeEvent*>( event );
emit change( changeEvent->change() );
- } else if ( event->type() == static_cast<QEvent::Type>( MappingEventType ) ) {
+ } else if ( event->type() == static_cast<TQEvent::Type>( MappingEventType ) ) {
MappingEvent *mappingEvent = static_cast<MappingEvent*>( event );
emit mapping( mappingEvent->mapping() );
- } else if ( event->type() == static_cast<QEvent::Type>( EngineEventType ) ) {
+ } else if ( event->type() == static_cast<TQEvent::Type>( EngineEventType ) ) {
EngineEvent *engineEvent = static_cast<EngineEvent*>( event );
emit engine( engineEvent->engine() );
- } else if ( event->type() == static_cast<QEvent::Type>( MemberEventType ) ) {
+ } else if ( event->type() == static_cast<TQEvent::Type>( MemberEventType ) ) {
MemberEvent *memberEvent = static_cast<MemberEvent*>( event );
emit member( memberEvent->member() );
}
@@ -149,7 +149,7 @@ void CallbackHandler::conflict_callback( OSyncEngine *engine, OSyncMapping *omap
CallbackHandler *handler = static_cast<CallbackHandler*>( data );
- QApplication::postEvent( handler, new ConflictEvent( mapping ) );
+ TQApplication::postEvent( handler, new ConflictEvent( mapping ) );
}
void CallbackHandler::change_callback( OSyncEngine*, OSyncChangeUpdate *update, void *data )
@@ -158,7 +158,7 @@ void CallbackHandler::change_callback( OSyncEngine*, OSyncChangeUpdate *update,
CallbackHandler *handler = static_cast<CallbackHandler*>( data );
- QApplication::postEvent( handler, new ChangeEvent( change ) );
+ TQApplication::postEvent( handler, new ChangeEvent( change ) );
}
void CallbackHandler::mapping_callback( OSyncMappingUpdate *update, void *data )
@@ -167,7 +167,7 @@ void CallbackHandler::mapping_callback( OSyncMappingUpdate *update, void *data )
SyncMappingUpdate mapping( update, handler->engine()->mEngine );
- QApplication::postEvent( handler, new MappingEvent( mapping ) );
+ TQApplication::postEvent( handler, new MappingEvent( mapping ) );
}
void CallbackHandler::engine_callback( OSyncEngine*, OSyncEngineUpdate *update, void *data )
@@ -176,7 +176,7 @@ void CallbackHandler::engine_callback( OSyncEngine*, OSyncEngineUpdate *update,
CallbackHandler *handler = static_cast<CallbackHandler*>( data );
- QApplication::postEvent( handler, new EngineEvent( engine ) );
+ TQApplication::postEvent( handler, new EngineEvent( engine ) );
}
void CallbackHandler::member_callback( OSyncMemberUpdate *update, void *data )
@@ -185,7 +185,7 @@ void CallbackHandler::member_callback( OSyncMemberUpdate *update, void *data )
CallbackHandler *handler = static_cast<CallbackHandler*>( data );
- QApplication::postEvent( handler, new MemberEvent( member ) );
+ TQApplication::postEvent( handler, new MemberEvent( member ) );
}
#include "callbackhandler.moc"