summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/relations/kexirelationmaindlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/plugins/relations/kexirelationmaindlg.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/plugins/relations/kexirelationmaindlg.cpp')
-rw-r--r--kexi/plugins/relations/kexirelationmaindlg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/plugins/relations/kexirelationmaindlg.cpp b/kexi/plugins/relations/kexirelationmaindlg.cpp
index 6b14fffa..ded97e1c 100644
--- a/kexi/plugins/relations/kexirelationmaindlg.cpp
+++ b/kexi/plugins/relations/kexirelationmaindlg.cpp
@@ -23,7 +23,7 @@
#include <kdebug.h>
#include <kiconloader.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kexidb/connection.h>
@@ -32,8 +32,8 @@
#include "kexirelationwidget.h"
#include "kexirelationview.h"
-KexiRelationMainDlg::KexiRelationMainDlg(KexiMainWindow *mainWin, QWidget *parent, const char *name)
- : KexiViewBase(mainWin, parent, name)
+KexiRelationMainDlg::KexiRelationMainDlg(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name)
+ : KexiViewBase(mainWin, tqparent, name)
{
kdDebug() << "KexiRelationMainDlg()" << endl;
// setIcon(SmallIcon("relation"));
@@ -46,13 +46,13 @@ KexiRelationMainDlg::KexiRelationMainDlg(KexiMainWindow *mainWin, QWidget *paren
addActionProxyChild( m_rel );
// addActionProxyChild( m_view->relationView() );
- QVBoxLayout *g = new QVBoxLayout(this);
+ TQVBoxLayout *g = new TQVBoxLayout(this);
g->addWidget(m_rel);
//show all tables
KexiDB::Connection *conn = mainWin->project()->dbConnection();
- QStringList tables = conn->tableNames();
- for (QStringList::ConstIterator it = tables.constBegin(); it!=tables.constEnd(); ++it) {
+ TQStringList tables = conn->tableNames();
+ for (TQStringList::ConstIterator it = tables.constBegin(); it!=tables.constEnd(); ++it) {
m_rel->addTable( *it );
}
}
@@ -61,18 +61,18 @@ KexiRelationMainDlg::~KexiRelationMainDlg()
{
}
-QSize KexiRelationMainDlg::sizeHint() const
+TQSize KexiRelationMainDlg::tqsizeHint() const
{
- return QSize(600,300);
+ return TQSize(600,300);
}
-QWidget*
+TQWidget*
KexiRelationMainDlg::mainWidget()
{
return m_rel;
}
-QString KexiRelationMainDlg::itemIcon()
+TQString KexiRelationMainDlg::itemIcon()
{
return "relation";
}