summaryrefslogtreecommitdiffstats
path: root/kexi/kexiutils/debuggui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexiutils/debuggui.cpp')
-rw-r--r--kexi/kexiutils/debuggui.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kexi/kexiutils/debuggui.cpp b/kexi/kexiutils/debuggui.cpp
index 72948fd2..f0a5146c 100644
--- a/kexi/kexiutils/debuggui.cpp
+++ b/kexi/kexiutils/debuggui.cpp
@@ -20,8 +20,8 @@
#include "utils.h"
#include "utils_p.h"
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqheader.h>
+#include <tqlayout.h>
#include <ktabwidget.h>
#include <klistview.h>
@@ -37,12 +37,12 @@ static KTabWidget* debugWindowTab = 0;
static KListView* kexiDBDebugPage = 0;
static KListView* kexiAlterTableActionDebugPage = 0;
-QWidget *KexiUtils::createDebugWindow(QWidget *parent)
+TQWidget *KexiUtils::createDebugWindow(TQWidget *tqparent)
{
// (this is internal code - do not use i18n() here)
- debugWindow = new DebugWindowDialog(parent);
+ debugWindow = new DebugWindowDialog(tqparent);
debugWindow->setSizeGripEnabled( true );
- QBoxLayout *lyr = new QVBoxLayout(debugWindow, KDialogBase::marginHint());
+ TQBoxLayout *lyr = new TQVBoxLayout(debugWindow, KDialogBase::marginHint());
debugWindowTab = new KTabWidget(debugWindow, "debugWindowTab");
lyr->addWidget( debugWindowTab );
debugWindow->resize(900, 600);
@@ -52,49 +52,49 @@ QWidget *KexiUtils::createDebugWindow(QWidget *parent)
return debugWindow;
}
-void KexiUtils::addKexiDBDebug(const QString& text)
+void KexiUtils::addKexiDBDebug(const TQString& text)
{
// (this is internal code - do not use i18n() here)
if (!debugWindowTab)
return;
if (!kexiDBDebugPage) {
- QWidget *page = new QWidget(debugWindowTab);
- QVBoxLayout *vbox = new QVBoxLayout(page);
- QHBoxLayout *hbox = new QHBoxLayout(page);
+ TQWidget *page = new TQWidget(debugWindowTab);
+ TQVBoxLayout *vbox = new TQVBoxLayout(page);
+ TQHBoxLayout *hbox = new TQHBoxLayout(page);
vbox->addLayout(hbox);
hbox->addStretch(1);
KPushButton *btn_clear = new KPushButton(KGuiItem("Clear", "clear_left"), page);
hbox->addWidget(btn_clear);
kexiDBDebugPage = new KListView(page, "kexiDbDebugPage");
- QObject::connect(btn_clear, SIGNAL(clicked()), kexiDBDebugPage, SLOT(clear()));
+ TQObject::connect(btn_clear, TQT_SIGNAL(clicked()), kexiDBDebugPage, TQT_SLOT(clear()));
vbox->addWidget(kexiDBDebugPage);
kexiDBDebugPage->addColumn("");
kexiDBDebugPage->header()->hide();
kexiDBDebugPage->setSorting(-1);
kexiDBDebugPage->setAllColumnsShowFocus ( true );
- kexiDBDebugPage->setColumnWidthMode( 0, QListView::Maximum );
+ kexiDBDebugPage->setColumnWidthMode( 0, TQListView::Maximum );
kexiDBDebugPage->setRootIsDecorated( true );
debugWindowTab->addTab( page, "KexiDB" );
debugWindowTab->showPage(page);
kexiDBDebugPage->show();
}
//add \n after (about) every 30 characters
-//TODO QString realText
+//TODO TQString realText
KListViewItem * li = new KListViewItem( kexiDBDebugPage, kexiDBDebugPage->lastItem(), text );
li->setMultiLinesEnabled( true );
}
-void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
+void KexiUtils::addAlterTableActionDebug(const TQString& text, int nestingLevel)
{
// (this is internal code - do not use i18n() here)
if (!debugWindowTab)
return;
if (!kexiAlterTableActionDebugPage) {
- QWidget *page = new QWidget(debugWindowTab);
- QVBoxLayout *vbox = new QVBoxLayout(page);
- QHBoxLayout *hbox = new QHBoxLayout(page);
+ TQWidget *page = new TQWidget(debugWindowTab);
+ TQVBoxLayout *vbox = new TQVBoxLayout(page);
+ TQHBoxLayout *hbox = new TQHBoxLayout(page);
vbox->addLayout(hbox);
hbox->addStretch(1);
KPushButton *btn_exec = new KPushButton(KGuiItem("Real Alter Table", "filesave"), page);
@@ -107,13 +107,13 @@ void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
hbox->addWidget(btn_sim);
kexiAlterTableActionDebugPage = new KListView(page, "kexiAlterTableActionDebugPage");
- QObject::connect(btn_clear, SIGNAL(clicked()), kexiAlterTableActionDebugPage, SLOT(clear()));
+ TQObject::connect(btn_clear, TQT_SIGNAL(clicked()), kexiAlterTableActionDebugPage, TQT_SLOT(clear()));
vbox->addWidget(kexiAlterTableActionDebugPage);
kexiAlterTableActionDebugPage->addColumn("");
kexiAlterTableActionDebugPage->header()->hide();
kexiAlterTableActionDebugPage->setSorting(-1);
kexiAlterTableActionDebugPage->setAllColumnsShowFocus ( true );
- kexiAlterTableActionDebugPage->setColumnWidthMode( 0, QListView::Maximum );
+ kexiAlterTableActionDebugPage->setColumnWidthMode( 0, TQListView::Maximum );
kexiAlterTableActionDebugPage->setRootIsDecorated( true );
debugWindowTab->addTab( page, "AlterTable Actions" );
debugWindowTab->showPage(page);
@@ -124,10 +124,10 @@ void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
KListViewItem * li;
int availableNestingLevels = 0;
// compute availableNestingLevels
- QListViewItem * lastItem = kexiAlterTableActionDebugPage->lastItem();
- //kdDebug() << "lastItem: " << (lastItem ? lastItem->text(0) : QString::null) << endl;
+ TQListViewItem * lastItem = kexiAlterTableActionDebugPage->lastItem();
+ //kdDebug() << "lastItem: " << (lastItem ? lastItem->text(0) : TQString()) << endl;
while (lastItem) {
- lastItem = lastItem->parent();
+ lastItem = lastItem->tqparent();
availableNestingLevels++;
}
//kdDebug() << "availableNestingLevels: " << availableNestingLevels << endl;
@@ -135,12 +135,12 @@ void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
lastItem = kexiAlterTableActionDebugPage->lastItem();
int levelsToGoUp = availableNestingLevels - nestingLevel;
while (levelsToGoUp > 0 && lastItem) {
- lastItem = lastItem->parent();
+ lastItem = lastItem->tqparent();
levelsToGoUp--;
}
- //kdDebug() << "lastItem2: " << (lastItem ? lastItem->text(0) : QString::null) << endl;
+ //kdDebug() << "lastItem2: " << (lastItem ? lastItem->text(0) : TQString()) << endl;
if (lastItem) {
- QListViewItem *after = lastItem->firstChild(); //find last child so we can insert a new item after it
+ TQListViewItem *after = lastItem->firstChild(); //find last child so we can insert a new item after it
while (after && after->nextSibling())
after = after->nextSibling();
if (after)
@@ -150,9 +150,9 @@ void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
}
else {
lastItem = kexiAlterTableActionDebugPage->lastItem();
- while (lastItem && lastItem->parent())
- lastItem = lastItem->parent();
- //kdDebug() << "lastItem2: " << (lastItem ? lastItem->text(0) : QString::null) << endl;
+ while (lastItem && lastItem->tqparent())
+ lastItem = lastItem->tqparent();
+ //kdDebug() << "lastItem2: " << (lastItem ? lastItem->text(0) : TQString()) << endl;
li = new KListViewItem( kexiAlterTableActionDebugPage, lastItem, text ); //after
}
li->setOpen(true);
@@ -160,12 +160,12 @@ void KexiUtils::addAlterTableActionDebug(const QString& text, int nestingLevel)
}
void KexiUtils::connectPushButtonActionForDebugWindow(const char* actionName,
- const QObject *receiver, const char* slot)
+ const TQObject *receiver, const char* slot)
{
if (debugWindow) {
KPushButton* btn = findFirstChild<KPushButton>(debugWindow, "KPushButton", actionName);
if (btn)
- QObject::connect(btn, SIGNAL(clicked()), receiver, slot);
+ TQObject::connect(btn, TQT_SIGNAL(clicked()), receiver, slot);
}
}