diff options
Diffstat (limited to 'kvoctrain/kvoctrain/kvoctraintable.h')
-rw-r--r-- | kvoctrain/kvoctrain/kvoctraintable.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kvoctrain/kvoctrain/kvoctraintable.h b/kvoctrain/kvoctrain/kvoctraintable.h index f42e0140..77fffa77 100644 --- a/kvoctrain/kvoctrain/kvoctraintable.h +++ b/kvoctrain/kvoctrain/kvoctraintable.h @@ -26,8 +26,8 @@ #ifndef KVOCTRAINTABLE_H #define KVOCTRAINTABLE_H -#include <qtable.h> -#include <qtimer.h> +#include <tqtable.h> +#include <tqtimer.h> #include "kvt-core/kvoctraindoc.h" #include "kvt-core/kvoctrainexpr.h" @@ -42,7 +42,7 @@ class KVocTrainTable : public QTable Q_OBJECT public: public: - KVocTrainTable( kvoctrainDoc *_doc, const LangSet *ls, QWidget *parent = NULL, const char *name = NULL ); + KVocTrainTable( kvoctrainDoc *_doc, const LangSet *ls, TQWidget *parent = NULL, const char *name = NULL ); friend class kvoctrainView; @@ -51,20 +51,20 @@ public: int count() { return numRows(); } void setModified(bool _dirty = true) { m_doc->setModified(_dirty); } - QString getIdent(int i) const { return m_doc->getIdent(i); } - QString getOriginalIdent() const { return m_doc->getOriginalIdent(); } - int findIdent(QString id) const { return m_doc->findIdent(id); } + TQString getIdent(int i) const { return m_doc->getIdent(i); } + TQString getOriginalIdent() const { return m_doc->getOriginalIdent(); } + int findIdent(TQString id) const { return m_doc->findIdent(id); } void setCurrentRow(int row, int col); void updateContents(int row = -1, int col = -1); kvoctrainExpr *getRow(int row); void setDoc(kvoctrainDoc *rows); - void setFont(const QFont &); + void setFont(const TQFont &); signals: void selected(int row); void rightButtonClicked(int header, int x, int y); - void forwardKeyPressEvent(QKeyEvent *); - void forwardKeyReleaseEvent(QKeyEvent *); + void forwardKeyPressEvent(TQKeyEvent *); + void forwardKeyReleaseEvent(TQKeyEvent *); void edited(int, int); public slots: @@ -80,15 +80,15 @@ public: protected: int current; - //QWidget* beginEdit(int row, int col, bool replace); + //TQWidget* beginEdit(int row, int col, bool replace); //void endEdit(int row, int col, bool accept, bool replace); - void paintCell(QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg); - void setItem(int row, int col, QTableItem * item); - QTableItem* item (int row, int col) const; - void keyPressEvent(QKeyEvent *e); - void keyReleaseEvent(QKeyEvent *e); - void contentsMousePressEvent(QMouseEvent *e); - void contentsMouseDoubleClickEvent(QMouseEvent *e); + void paintCell(TQPainter *p, int row, int col, const TQRect &cr, bool selected, const TQColorGroup &cg); + void setItem(int row, int col, TQTableItem * item); + TQTableItem* item (int row, int col) const; + void keyPressEvent(TQKeyEvent *e); + void keyReleaseEvent(TQKeyEvent *e); + void contentsMousePressEvent(TQMouseEvent *e); + void contentsMouseDoubleClickEvent(TQMouseEvent *e); void activateNextCell(); private: @@ -97,10 +97,10 @@ public: const LangSet* langs; //const GradeCols *gradecols; KVocTrainTableItem *defaultItem; - QTimer *delayTimer; + TQTimer *delayTimer; int triggerSect; - QPixmap m_pixInactive; - QPixmap m_pixInQuery; + TQPixmap m_pixInactive; + TQPixmap m_pixInQuery; }; #endif |