summaryrefslogtreecommitdiffstats
path: root/src/sources/triggeredsource.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 20:48:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 20:48:23 +0000
commit383adc283801b6238d8acfc750890613a63f8060 (patch)
treeaf3a65389067c05263db2ef4551a541501422998 /src/sources/triggeredsource.h
parentda7847adb43726079c7a4be1f06acbebe0bdde57 (diff)
downloadkima-383adc283801b6238d8acfc750890613a63f8060.tar.gz
kima-383adc283801b6238d8acfc750890613a63f8060.zip
TQt4 port kima
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kima@1239290 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/sources/triggeredsource.h')
-rw-r--r--src/sources/triggeredsource.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/sources/triggeredsource.h b/src/sources/triggeredsource.h
index 9beba25..aa32464 100644
--- a/src/sources/triggeredsource.h
+++ b/src/sources/triggeredsource.h
@@ -22,7 +22,7 @@
#define TRIGGEREDSOURCE_H
#include "source.h"
-#include <qevent.h>
+#include <tqevent.h>
/**
* TriggeredSource provides fetchValue and
@@ -30,12 +30,13 @@
* @author Ken Werner
*/
class TriggeredSource : public Source{
- Q_OBJECT //macro which activates signals and slots (moc)
+ Q_OBJECT
+ TQ_OBJECT //macro which activates signals and slots (tqmoc)
public:
/**
* Creates a new TriggeredSource
*/
- TriggeredSource(QWidget* inParent);
+ TriggeredSource(TQWidget* inParent);
virtual ~TriggeredSource();
@@ -44,29 +45,29 @@ public slots:
/**
* Returns the formatted value of this source
*/
- virtual QString getValue() const;
+ virtual TQString getValue() const;
/**
* Fetches and returns the value of this source
* This method might be called from a thread so don't call it directly
*/
- virtual QString fetchValue() = 0;
+ virtual TQString fetchValue() = 0;
signals:
/**
* This signal is emitted whenever the value of this source (mValue) is updated
*/
- void valueUpdated(const QString& inValue);
+ void valueUpdated(const TQString& inValue);
protected:
/**
* consumes the UpdateEvent
*/
- virtual void customEvent(QCustomEvent* event);
+ virtual void customEvent(TQCustomEvent* event);
/**
* the buffered value of this source
*/
- QString mValue;
+ TQString mValue;
};
#endif //TRIGGEREDSOURCE_H