diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kparts/event.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/event.cpp')
-rw-r--r-- | kparts/event.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kparts/event.cpp b/kparts/event.cpp index 3f783aad1..4f0efd617 100644 --- a/kparts/event.cpp +++ b/kparts/event.cpp @@ -25,7 +25,7 @@ using namespace KParts; #define KPARTS_EVENT_MAGIC 42 Event::Event( const char *eventName ) - : QCustomEvent( (QEvent::Type)(QEvent::User + KPARTS_EVENT_MAGIC), (void *)eventName ) + : TQCustomEvent( (TQEvent::Type)(TQEvent::User + KPARTS_EVENT_MAGIC), (void *)eventName ) { } @@ -37,20 +37,20 @@ const char *Event::eventName() const return (const char *)data(); } -bool Event::test( const QEvent *event ) +bool Event::test( const TQEvent *event ) { if ( !event ) return false; - return ( event->type() == (QEvent::Type)(QEvent::User + KPARTS_EVENT_MAGIC ) ); + return ( event->type() == (TQEvent::Type)(TQEvent::User + KPARTS_EVENT_MAGIC ) ); } -bool Event::test( const QEvent *event, const char *name ) +bool Event::test( const TQEvent *event, const char *name ) { if ( !test( event ) ) return false; - return ( strcmp( name, (const char *)((QCustomEvent *)event)->data() ) == 0 ); + return ( strcmp( name, (const char *)((TQCustomEvent *)event)->data() ) == 0 ); } const char *GUIActivateEvent::s_strGUIActivateEvent = "KParts/GUIActivate"; |