From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/undo.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kalarm/undo.h') diff --git a/kalarm/undo.h b/kalarm/undo.h index 99e06f979..0af181530 100644 --- a/kalarm/undo.h +++ b/kalarm/undo.h @@ -23,8 +23,8 @@ /** @file undo.h - undo/redo facility */ -#include -#include +#include +#include class KAEvent; class UndoItem; @@ -40,31 +40,31 @@ class Undo : public QObject static void saveAdd(const KAEvent&); static void saveEdit(const KAEvent& oldEvent, const KAEvent& newEvent); static void saveDelete(const KAEvent&); - static void saveDeletes(const QValueList&); + static void saveDeletes(const TQValueList&); static void saveReactivate(const KAEvent&); - static void saveReactivates(const QValueList&); - static bool undo(QWidget* parent, const QString& action) + static void saveReactivates(const TQValueList&); + static bool undo(TQWidget* parent, const TQString& action) { return undo(mUndoList.begin(), UNDO, parent, action); } - static bool undo(int id, QWidget* parent, const QString& action) + static bool undo(int id, TQWidget* parent, const TQString& action) { return undo(findItem(id, UNDO), UNDO, parent, action); } - static bool redo(QWidget* parent, const QString& action) + static bool redo(TQWidget* parent, const TQString& action) { return undo(mRedoList.begin(), REDO, parent, action); } - static bool redo(int id, QWidget* parent, const QString& action) + static bool redo(int id, TQWidget* parent, const TQString& action) { return undo(findItem(id, REDO), REDO, parent, action); } static void clear(); static bool haveUndo() { return !mUndoList.isEmpty(); } static bool haveRedo() { return !mRedoList.isEmpty(); } - static QString actionText(Type); - static QString actionText(Type, int id); - static QString description(Type, int id); - static QValueList ids(Type); + static TQString actionText(Type); + static TQString actionText(Type, int id); + static TQString description(Type, int id); + static TQValueList ids(Type); static void emitChanged(); // Types for use by UndoItem class and its descendants - typedef QValueList List; + typedef TQValueList List; signals: - void changed(const QString& undo, const QString& redo); + void changed(const TQString& undo, const TQString& redo); protected: // Methods for use by UndoItem class @@ -73,14 +73,14 @@ class Undo : public QObject static void replace(UndoItem* old, UndoItem* New); private: - typedef QValueList::Iterator Iterator; + typedef TQValueList::Iterator Iterator; - Undo(QObject* parent) : QObject(parent) { } - static void removeRedos(const QString& eventID); - static bool undo(Iterator, Type, QWidget* parent, const QString& action); + Undo(TQObject* parent) : TQObject(parent) { } + static void removeRedos(const TQString& eventID); + static bool undo(Iterator, Type, TQWidget* parent, const TQString& action); static UndoItem* getItem(int id, Type); static Iterator findItem(int id, Type); - void emitChanged(const QString& undo, const QString& redo) + void emitChanged(const TQString& undo, const TQString& redo) { emit changed(undo, redo); } static Undo* mInstance; // the one and only Undo instance -- cgit v1.2.1