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/gvcore/busylevelmanager.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/gvcore/busylevelmanager.h')
-rw-r--r-- | src/gvcore/busylevelmanager.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gvcore/busylevelmanager.h b/src/gvcore/busylevelmanager.h index 9959c56..e1f8a43 100644 --- a/src/gvcore/busylevelmanager.h +++ b/src/gvcore/busylevelmanager.h @@ -21,8 +21,8 @@ Copyright 2000-2004 Aur�lien G�teau #ifndef BUSYLEVELMANAGER_H #define BUSYLEVELMANAGER_H -// Qt -#include <qtimer.h> +// TQt +#include <tqtimer.h> namespace Gwenview { // KDE @@ -42,15 +42,16 @@ enum BusyLevel { BUSY_CHECKING_NEW_IMAGE }; -class LIBGWENVIEW_EXPORT BusyLevelManager : public QObject { +class LIBGWENVIEW_EXPORT BusyLevelManager : public TQObject { Q_OBJECT + TQ_OBJECT public: static BusyLevelManager* instance(); /** * Announces that the given object is busy. */ - void setBusyLevel( QObject* obj, BusyLevel level ); + void setBusyLevel( TQObject* obj, BusyLevel level ); /** * Returns the busy level of the whole application (i.e. maximum). @@ -67,13 +68,13 @@ signals: private slots: void delayedBusyLevelChanged(); - void objectDestroyed( QObject* obj ); + void objectDestroyed( TQObject* obj ); private: BusyLevelManager(); - QMap< QObject*, BusyLevel > mBusyLevels; + TQMap< TQObject*, BusyLevel > mBusyLevels; BusyLevel mCurrentBusyLevel; - QTimer mDelayedBusyLevelTimer; + TQTimer mDelayedBusyLevelTimer; }; @@ -81,8 +82,9 @@ private: Helper class. Constructor sets its busy level to the given level, destructor resets the busy level to none. */ -class BusyLevelHelper : public QObject { +class BusyLevelHelper : public TQObject { Q_OBJECT + TQ_OBJECT public: BusyLevelHelper( BusyLevel level ); ~BusyLevelHelper(); |