diff options
Diffstat (limited to 'lib/kofficeui/KoCommandHistory.h')
-rw-r--r-- | lib/kofficeui/KoCommandHistory.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/kofficeui/KoCommandHistory.h b/lib/kofficeui/KoCommandHistory.h index a36ce670..08de0e45 100644 --- a/lib/kofficeui/KoCommandHistory.h +++ b/lib/kofficeui/KoCommandHistory.h @@ -21,24 +21,25 @@ #ifndef kocommandhistory_h #define kocommandhistory_h -#include <qptrlist.h> -#include <qstring.h> -#include <qobject.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqobject.h> #include <koffice_export.h> class KAction; class KActionCollection; -class QPopupMenu; +class TQPopupMenu; class KCommand; -#include <qlistbox.h> +#include <tqlistbox.h> -class KoListBox : public QListBox { +class KoListBox : public TQListBox { Q_OBJECT + TQ_OBJECT public: - KoListBox( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); + KoListBox( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 ); protected: - virtual void contentsMouseMoveEvent ( QMouseEvent * ); - virtual QSize sizeHint() const; + virtual void contentsMouseMoveEvent ( TQMouseEvent * ); + virtual TQSize tqsizeHint() const; signals: void changeNumberOfSelectedItem( int ); }; @@ -55,8 +56,9 @@ signals: * * @short History of user commands (for undo/redo) */ -class KOFFICEUI_EXPORT KoCommandHistory : public QObject { +class KOFFICEUI_EXPORT KoCommandHistory : public TQObject { Q_OBJECT + TQ_OBJECT public: /** * Creates a command history, to store commands. @@ -83,7 +85,7 @@ public: /** * Erases all the undo/redo history. - * Use this when reloading the data, for instance, since this invalidates + * Use this when reloading the data, for instance, since this tqinvalidates * all the commands. */ void clear(); @@ -154,8 +156,8 @@ protected slots: void slotUndoActivated( int ); void slotRedoAboutToShow(); void slotRedoActivated( int ); - void slotUndoActivated( QListBoxItem *); - void slotRedoActivated( QListBoxItem *); + void slotUndoActivated( TQListBoxItem *); + void slotRedoActivated( TQListBoxItem *); void slotChangeRedoNumberOfSelectedItem( int ); void slotChangeUndoNumberOfSelectedItem( int ); signals: @@ -183,9 +185,9 @@ signals: private: void clipCommands(); // ensures that the limits are kept - QPtrList<KCommand> m_commands; + TQPtrList<KCommand> m_commands; KAction *m_undo, *m_redo; - QPopupMenu *m_undoPopup, *m_redoPopup; + TQPopupMenu *m_undoPopup, *m_redoPopup; int m_undoLimit, m_redoLimit; bool m_first; // attention: it's the first command in the list! protected: |