summaryrefslogtreecommitdiffstats
path: root/kalarm/undo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/undo.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/undo.h')
-rw-r--r--kalarm/undo.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/kalarm/undo.h b/kalarm/undo.h
index cca197f89..0f65cb9fa 100644
--- a/kalarm/undo.h
+++ b/kalarm/undo.h
@@ -30,9 +30,10 @@ class KAEvent;
class UndoItem;
-class Undo : public QObject
+class Undo : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type { NONE, UNDO, REDO };
@@ -43,14 +44,14 @@ class Undo : public QObject
static void saveDeletes(const TQValueList<KAEvent>&);
static void saveReactivate(const KAEvent&);
static void saveReactivates(const TQValueList<KAEvent>&);
- static bool undo(TQWidget* parent, const TQString& action)
- { return undo(mUndoList.begin(), UNDO, parent, action); }
- static bool undo(int id, TQWidget* parent, const TQString& action)
- { return undo(findItem(id, UNDO), UNDO, parent, action); }
- static bool redo(TQWidget* parent, const TQString& action)
- { return undo(mRedoList.begin(), REDO, parent, action); }
- static bool redo(int id, TQWidget* parent, const TQString& action)
- { return undo(findItem(id, REDO), REDO, parent, action); }
+ static bool undo(TQWidget* tqparent, const TQString& action)
+ { return undo(mUndoList.begin(), UNDO, tqparent, action); }
+ static bool undo(int id, TQWidget* tqparent, const TQString& action)
+ { return undo(findItem(id, UNDO), UNDO, tqparent, action); }
+ static bool redo(TQWidget* tqparent, const TQString& action)
+ { return undo(mRedoList.begin(), REDO, tqparent, action); }
+ static bool redo(int id, TQWidget* tqparent, const TQString& action)
+ { return undo(findItem(id, REDO), REDO, tqparent, action); }
static void clear();
static bool haveUndo() { return !mUndoList.isEmpty(); }
static bool haveRedo() { return !mRedoList.isEmpty(); }
@@ -75,9 +76,9 @@ class Undo : public QObject
private:
typedef TQValueList<UndoItem*>::Iterator Iterator;
- Undo(TQObject* parent) : TQObject(parent) { }
+ Undo(TQObject* tqparent) : TQObject(tqparent) { }
static void removeRedos(const TQString& eventID);
- static bool undo(Iterator, Type, TQWidget* parent, const TQString& action);
+ static bool undo(Iterator, Type, TQWidget* tqparent, const TQString& action);
static UndoItem* getItem(int id, Type);
static Iterator findItem(int id, Type);
void emitChanged(const TQString& undo, const TQString& redo)