diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/tsthread/tswaitcondition.h | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/tsthread/tswaitcondition.h')
-rw-r--r-- | src/tsthread/tswaitcondition.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tsthread/tswaitcondition.h b/src/tsthread/tswaitcondition.h index 09f9cab..b13695f 100644 --- a/src/tsthread/tswaitcondition.h +++ b/src/tsthread/tswaitcondition.h @@ -25,23 +25,23 @@ DEALINGS IN THE SOFTWARE. #ifndef TSWAITCONDITION_H #define TSWAITCONDITION_H -#include <qmutex.h> -#include <qwaitcondition.h> +#include <tqmutex.h> +#include <tqwaitcondition.h> class TSWaitCondition { public: TSWaitCondition(); ~TSWaitCondition(); - bool wait( QMutex* mutex, unsigned long time = ULONG_MAX ); - bool wait( QMutex& mutex, unsigned long time = ULONG_MAX ); - bool cancellableWait( QMutex* mutex, unsigned long time = ULONG_MAX ); - bool cancellableWait( QMutex& mutex, unsigned long time = ULONG_MAX ); + bool wait( TQMutex* mutex, unsigned long time = ULONG_MAX ); + bool wait( TQMutex& mutex, unsigned long time = ULONG_MAX ); + bool cancellableWait( TQMutex* mutex, unsigned long time = ULONG_MAX ); + bool cancellableWait( TQMutex& mutex, unsigned long time = ULONG_MAX ); void wakeOne(); void wakeAll(); private: - QMutex mutex; - QWaitCondition cond; + TQMutex mutex; + TQWaitCondition cond; private: TSWaitCondition( const TSWaitCondition& ); TSWaitCondition& operator=( const TSWaitCondition& ); @@ -58,13 +58,13 @@ TSWaitCondition::~TSWaitCondition() } inline -bool TSWaitCondition::wait( QMutex& mutex, unsigned long time ) +bool TSWaitCondition::wait( TQMutex& mutex, unsigned long time ) { return wait( &mutex, time ); } inline -bool TSWaitCondition::cancellableWait( QMutex& mutex, unsigned long time ) +bool TSWaitCondition::cancellableWait( TQMutex& mutex, unsigned long time ) { return cancellableWait( &mutex, time ); } |