summaryrefslogtreecommitdiffstats
path: root/kexi/widget/relations/kexirelationviewtable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/relations/kexirelationviewtable.cpp')
-rw-r--r--kexi/widget/relations/kexirelationviewtable.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kexi/widget/relations/kexirelationviewtable.cpp b/kexi/widget/relations/kexirelationviewtable.cpp
index 5de32b91..55440da4 100644
--- a/kexi/widget/relations/kexirelationviewtable.cpp
+++ b/kexi/widget/relations/kexirelationviewtable.cpp
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <tqheader.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqcursor.h>
@@ -61,18 +61,18 @@ KexiRelationViewTableContainer::KexiRelationViewTableContainer(
m_tableHeader = new KexiRelationViewTableContainerHeader(schema->name(), this);
m_tableHeader->unsetFocus();
- m_tableHeader->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
+ m_tableHeader->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
lyr->addWidget(m_tableHeader);
connect(m_tableHeader,TQT_SIGNAL(moved()),this,TQT_SLOT(moved()));
connect(m_tableHeader, TQT_SIGNAL(endDrag()), this, TQT_SIGNAL(endDrag()));
m_tableView = new KexiRelationViewTable(schema, parent, this, "KexiRelationViewTable");
//m_tableHeader->setFocusProxy( m_tableView );
- m_tableView->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
+ m_tableView->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
- m_tableView->setMaximumSize( m_tableView->sizeHint() );
+ m_tableView->setMaximumSize( m_tableView->tqsizeHint() );
-// m_tableView->resize( m_tableView->sizeHint() );
+// m_tableView->resize( m_tableView->tqsizeHint() );
lyr->addWidget(m_tableView, 0);
connect(m_tableView, TQT_SIGNAL(tableScrolling()), this, TQT_SLOT(moved()));
connect(m_tableView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
@@ -110,13 +110,13 @@ int KexiRelationViewTableContainer::globalY(const TQString &field)
}
#if 0//js
-TQSize KexiRelationViewTableContainer::sizeHint()
+TQSize KexiRelationViewTableContainer::tqsizeHint()
{
#ifdef TQ_WS_WIN
- TQSize s = m_tableView->sizeHint()
+ TQSize s = m_tableView->tqsizeHint()
+ TQSize( 2 * 5 , m_tableHeader->height() + 2 * 5 );
#else
- TQSize s = m_tableView->sizeHint();
+ TQSize s = m_tableView->tqsizeHint();
s.setWidth(s.width() + 4);
s.setHeight(m_tableHeader->height() + s.height());
#endif
@@ -140,7 +140,7 @@ void KexiRelationViewTableContainer::setFocus()
m_tableView->setPalette(p);*/
raise();
- repaint();
+ tqrepaint();
emit gotFocus();
}
@@ -166,7 +166,7 @@ void KexiRelationViewTableContainer::unsetFocus()
m_tableView->setPalette(p);*/
clearFocus();
- repaint();
+ tqrepaint();
}
@@ -307,7 +307,7 @@ KexiRelationViewTable::~KexiRelationViewTable()
{
}
-TQSize KexiRelationViewTable::sizeHint() const
+TQSize KexiRelationViewTable::tqsizeHint() const
{
TQFontMetrics fm(fontMetrics());
@@ -341,7 +341,7 @@ KexiRelationViewTable::globalY(const TQString &item)
TQListViewItem *i = findItem(item, 0);
if (!i)
return -1;
- int y = itemRect(i).y() + (itemRect(i).height() / 2);
+ int y = tqitemRect(i).y() + (tqitemRect(i).height() / 2);
if (contentsY() > itemPos(i))
y = 0;
else if (y == 0)
@@ -420,10 +420,10 @@ void KexiRelationViewTable::contentsMousePressEvent(TQMouseEvent *ev)
TQRect KexiRelationViewTable::drawItemHighlighter(TQPainter *painter, TQListViewItem *item)
{
if (painter) {
- tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, painter, itemRect(item), colorGroup(),
+ tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, painter, tqitemRect(item), tqcolorGroup(),
TQStyle::Style_FocusAtBorder);
}
- return itemRect(item);
+ return tqitemRect(item);
}
#include "kexirelationviewtable.moc"