summaryrefslogtreecommitdiffstats
path: root/kexi/widget/relations/kexirelationviewtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/relations/kexirelationviewtable.h')
-rw-r--r--kexi/widget/relations/kexirelationviewtable.h63
1 files changed, 33 insertions, 30 deletions
diff --git a/kexi/widget/relations/kexirelationviewtable.h b/kexi/widget/relations/kexirelationviewtable.h
index cc90e16d..deabc2e0 100644
--- a/kexi/widget/relations/kexirelationviewtable.h
+++ b/kexi/widget/relations/kexirelationviewtable.h
@@ -21,9 +21,9 @@
#ifndef KEXIRELATIONVIEWTABLE_H
#define KEXIRELATIONVIEWTABLE_H
-#include <qframe.h>
-#include <qstringlist.h>
-#include <qlabel.h>
+#include <tqframe.h>
+#include <tqstringlist.h>
+#include <tqlabel.h>
#include <klistview.h>
#include <widget/kexifieldlistview.h>
@@ -37,18 +37,19 @@ namespace KexiDB
class TableOrQuerySchema;
}
-class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainer : public QFrame
+class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainer : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
-// KexiRelationViewTableContainer(KexiRelationView *parent, KexiDB::TableSchema *t);
+// KexiRelationViewTableContainer(KexiRelationView *tqparent, KexiDB::TableSchema *t);
KexiRelationViewTableContainer(
- KexiRelationView *parent, KexiDB::TableOrQuerySchema *schema);
+ KexiRelationView *tqparent, KexiDB::TableOrQuerySchema *schema);
virtual ~KexiRelationViewTableContainer();
- int globalY(const QString &field);
+ int globalY(const TQString &field);
// KexiDB::TableSchema *table();
KexiRelationViewTable* tableView() const { return m_tableView; }
@@ -61,7 +62,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainer : public QFrame
void moved(KexiRelationViewTableContainer *);
void endDrag();
void gotFocus();
- void contextMenuRequest(const QPoint& pos);
+ void contextMenuRequest(const TQPoint& pos);
public slots:
virtual void setFocus();
@@ -69,7 +70,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainer : public QFrame
protected slots:
void moved();
- void slotContextMenu(KListView *lv, QListViewItem *i, const QPoint& p);
+ void slotContextMenu(KListView *lv, TQListViewItem *i, const TQPoint& p);
protected:
// KexiDB::TableSchema *m_table;
@@ -84,53 +85,55 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainer : public QFrame
class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableItem : public KListViewItem
{
public:
- KexiRelationViewTableItem(QListView *parent, QListViewItem *after,
- QString key, QString field);
- virtual void paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r );
+ KexiRelationViewTableItem(TQListView *tqparent, TQListViewItem *after,
+ TQString key, TQString field);
+ virtual void paintFocus ( TQPainter * p, const TQColorGroup & cg, const TQRect & r );
};*/
class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTable : public KexiFieldListView
{
Q_OBJECT
+ TQ_OBJECT
public:
KexiRelationViewTable(KexiDB::TableOrQuerySchema* tableOrQuerySchema,
- KexiRelationView *view, QWidget *parent, const char *name = 0);
-// KexiRelationViewTable(QWidget *parent, KexiRelationView *view, KexiDB::TableSchema *t, const char *name=0);
+ KexiRelationView *view, TQWidget *tqparent, const char *name = 0);
+// KexiRelationViewTable(TQWidget *tqparent, KexiRelationView *view, KexiDB::TableSchema *t, const char *name=0);
virtual ~KexiRelationViewTable();
// KexiDB::TableSchema *table() const { return m_table; };
- int globalY(const QString &item);
+ int globalY(const TQString &item);
// void setReadOnly(bool);
- virtual QSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
signals:
void tableScrolling();
protected slots:
- void slotDropped(QDropEvent *e);
+ void slotDropped(TQDropEvent *e);
void slotContentsMoving(int, int);
-// void slotItemDoubleClicked( QListViewItem *i, const QPoint &, int );
+// void slotItemDoubleClicked( TQListViewItem *i, const TQPoint &, int );
protected:
- virtual void contentsMousePressEvent( QMouseEvent * e );
- virtual bool acceptDrag(QDropEvent *e) const;
-//moved virtual QDragObject *dragObject();
- virtual QRect drawItemHighlighter(QPainter *painter, QListViewItem *item);
+ virtual void contentsMousePressEvent( TQMouseEvent * e );
+ virtual bool acceptDrag(TQDropEvent *e) const;
+//moved virtual TQDragObject *dragObject();
+ virtual TQRect drawItemHighlighter(TQPainter *painter, TQListViewItem *item);
private:
-// QStringList m_fieldList;
+// TQStringList m_fieldList;
// KexiDB::TableSchema *m_table;
KexiRelationView *m_view;
-// QPixmap m_keyIcon, m_noIcon;
+// TQPixmap m_keyIcon, m_noIcon;
};
-class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainerHeader : public QLabel
+class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainerHeader : public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiRelationViewTableContainerHeader(const QString& text,QWidget *parent);
+ KexiRelationViewTableContainerHeader(const TQString& text,TQWidget *tqparent);
virtual ~KexiRelationViewTableContainerHeader();
virtual void setFocus();
@@ -141,9 +144,9 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainerHeader : public QLa
void endDrag();
protected:
- bool eventFilter(QObject *obj, QEvent *ev);
- void mousePressEvent(QMouseEvent *ev);
- void mouseReleaseEvent(QMouseEvent *ev);
+ bool eventFilter(TQObject *obj, TQEvent *ev);
+ void mousePressEvent(TQMouseEvent *ev);
+ void mouseReleaseEvent(TQMouseEvent *ev);
bool m_dragging;
int m_grabX;
@@ -151,7 +154,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationViewTableContainerHeader : public QLa
int m_offsetX;
int m_offsetY;
- QColor m_activeBG, m_activeFG, m_inactiveBG, m_inactiveFG;
+ TQColor m_activeBG, m_activeFG, m_inactiveBG, m_inactiveFG;
};
#endif