diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/tablefieldwidget.h | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/tablefieldwidget.h')
-rw-r--r-- | src/gui/tablefieldwidget.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/tablefieldwidget.h b/src/gui/tablefieldwidget.h index da9157d..03060b2 100644 --- a/src/gui/tablefieldwidget.h +++ b/src/gui/tablefieldwidget.h @@ -14,8 +14,8 @@ #ifndef TABLEFIELDWIDGET_H #define TABLEFIELDWIDGET_H -class QTable; -class QEvent; +class TQTable; +class TQEvent; #include "fieldwidget.h" #include "../datavectors.h" @@ -28,28 +28,29 @@ namespace Tellico { */ class TableFieldWidget : public FieldWidget { Q_OBJECT + TQ_OBJECT public: - TableFieldWidget(Data::FieldPtr field, QWidget* parent, const char* name=0); + TableFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); virtual ~TableFieldWidget() {} - virtual QString text() const; - virtual void setText(const QString& text); + virtual TQString text() const; + virtual void setText(const TQString& text); /** * Event filter used to popup the menu */ - bool eventFilter(QObject* obj, QEvent* ev); + bool eventFilter(TQObject* obj, TQEvent* ev); public slots: virtual void clear(); protected: - virtual QWidget* widget(); + virtual TQWidget* widget(); virtual void updateFieldHook(Data::FieldPtr oldField, Data::FieldPtr newField); private slots: - void contextMenu(int row, int col, const QPoint& p); + void contextMenu(int row, int col, const TQPoint& p); void slotCheckRows(int row, int col); void slotResizeColumn(int row, int col); void slotRenameColumn(); @@ -62,7 +63,7 @@ private: bool emptyRow(int row) const; void labelColumns(Data::FieldPtr field); - QTable* m_table; + TQTable* m_table; int m_columns; Data::FieldPtr m_field; int m_row; |