From 4304e8d9dab8e20513e38e71b0debdf6937b630c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 16 Apr 2011 23:01:29 +0000 Subject: Finish TQt4 port of kpowersave This enables both Qt3 and Qt4 builds git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1228282 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/inactivity.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/inactivity.h') diff --git a/src/inactivity.h b/src/inactivity.h index d3fb979..93013db 100644 --- a/src/inactivity.h +++ b/src/inactivity.h @@ -22,19 +22,19 @@ /* this is needed to avoid typedef clash with X11 */ -#ifndef QT_CLEAN_NAMESPACE -#define QT_CLEAN_NAMESPACE +#ifndef TQT_CLEAN_NAMESPACE +#define TQT_CLEAN_NAMESPACE #endif // KDE Header #include // QT Header -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include // X11 Header #include @@ -56,9 +56,10 @@ * \date 2006 */ -class inactivity : public QWidget +class inactivity : public TQWidget { Q_OBJECT + TQ_OBJECT public: //! default constructor @@ -67,7 +68,7 @@ public: ~inactivity(); //! to start the monitoring of the X-Server - void start(int, QStringList); + void start(int, TQStringList); //! to stop the monitoring of the X-Server void stop(); @@ -79,7 +80,7 @@ signals: //! signal emited if the with \ref start() set time of inactivity is expired void inactivityTimeExpired(); //! signal to emit error msg - void displayErrorMsg( QString ); + void displayErrorMsg( TQString ); private: @@ -117,8 +118,8 @@ private: */ bool blacklisted_running; - //! QStringList with blacklisted programs for autosuspend - QStringList blacklist; + //! TQStringList with blacklisted programs for autosuspend + TQStringList blacklist; //! time which must expire befor emit signal for autosuspend unsigned long timeToInactivity; @@ -129,20 +130,20 @@ private: //! if the XServer-has XScreenSaverExtension int has_XSC_Extension; - //! QTimer intervall for the \ref checkInactivity Timer + //! TQTimer intervall for the \ref checkInactivity Timer /*! * The time intervall to check for the current status and time of * userinactivity. The timeslice is currently 30 sec. */ static const int CHECK_for_INACTIVITY = 30000; - //! QTimer for check inactivity + //! TQTimer for check inactivity /*! * This timer is used to check the currently status and time of * userinactivity on the X-Server. The timerinterval is defined trough * \ref CHECK_for_INACTIVITY . */ - QTimer *checkInactivity; + TQTimer *checkInactivity; // -------- FUNCTIONS ------------ -- cgit v1.2.1