diff options
Diffstat (limited to 'quanta/parts/kafka/domtreeview.cpp')
-rw-r--r-- | quanta/parts/kafka/domtreeview.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/quanta/parts/kafka/domtreeview.cpp b/quanta/parts/kafka/domtreeview.cpp index 14fe17d2..5ed55a1b 100644 --- a/quanta/parts/kafka/domtreeview.cpp +++ b/quanta/parts/kafka/domtreeview.cpp @@ -21,13 +21,13 @@ #include <kdebug.h> #include <khtml_part.h> #include <klocale.h> -#include <qstring.h> -#include <qlayout.h> +#include <tqstring.h> +#include <tqlayout.h> #include <dom/dom_text.h> #include "domtreeview.moc" -DOMTreeView::DOMTreeView(QWidget *parent, KHTMLPart *currentpart, const char * name) : KListView(parent, name) +DOMTreeView::DOMTreeView(TQWidget *parent, KHTMLPart *currentpart, const char * name) : KListView(parent, name) { setCaption(name); setRootIsDecorated(true); @@ -38,11 +38,11 @@ DOMTreeView::DOMTreeView(QWidget *parent, KHTMLPart *currentpart, const char * n addColumn(""); setSorting(-1); part = currentpart; - connect(part, SIGNAL(nodeActivated(const DOM::Node &)), this, SLOT(showTree(const DOM::Node &))); - connect(this, SIGNAL(clicked(QListViewItem *)), this, SLOT(slotItemClicked(QListViewItem *))); + connect(part, TQT_SIGNAL(nodeActivated(const DOM::Node &)), this, TQT_SLOT(showTree(const DOM::Node &))); + connect(this, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(slotItemClicked(TQListViewItem *))); m_nodedict.setAutoDelete(true); title = ""; - titleItem = new QListViewItem(static_cast<QListView *>(this), title, ""); + titleItem = new TQListViewItem(static_cast<TQListView *>(this), title, ""); } DOMTreeView::~DOMTreeView() @@ -50,7 +50,7 @@ DOMTreeView::~DOMTreeView() disconnect(part); } -void DOMTreeView::setTitle(const QString &str) +void DOMTreeView::setTitle(const TQString &str) { title = str; titleItem->setText(1, title); @@ -78,7 +78,7 @@ void DOMTreeView::showTree(const DOM::Node &pNode) document = pNode.ownerDocument(); recursive(0, pNode.ownerDocument()); } - titleItem = new QListViewItem(static_cast<QListView *>(this), title, ""); + titleItem = new TQListViewItem(static_cast<TQListView *>(this), title, ""); // } setCurrentItem(m_itemdict[pNode.handle()]); ensureItemVisible(m_itemdict[pNode.handle()]); @@ -86,30 +86,30 @@ void DOMTreeView::showTree(const DOM::Node &pNode) void DOMTreeView::recursive(const DOM::Node &pNode, const DOM::Node &node) { - QListViewItem *cur_item; + TQListViewItem *cur_item; int len; if(pNode.ownerDocument() != document) { - QString val = node.nodeValue().string(); + TQString val = node.nodeValue().string(); if ( val.length() > 20 ) val.truncate( 20 ); - cur_item = new QListViewItem(static_cast<QListView *>(this), node.nodeName().string(), val); + cur_item = new TQListViewItem(static_cast<TQListView *>(this), node.nodeName().string(), val); document = pNode.ownerDocument(); } else { - QString val = node.nodeValue().string(); + TQString val = node.nodeValue().string(); if ( val.length() > 20 ) val.truncate( 20 ); if(node.nodeType() == DOM::Node::TEXT_NODE) len = (static_cast<DOM::CharacterData>(node)).length(); else len = 0; - cur_item = new QListViewItem(m_itemdict[pNode.handle()], node.nodeName().string(), val, QString::number(len), QString::number(node.elementId()) ); + cur_item = new TQListViewItem(m_itemdict[pNode.handle()], node.nodeName().string(), val, TQString::number(len), TQString::number(node.elementId()) ); unsigned long i; - QListViewItem *tmp = new QListViewItem(cur_item, "properties"); + TQListViewItem *tmp = new TQListViewItem(cur_item, "properties"); for(i = 0; i < node.attributes().length(); i++) { - new QListViewItem(tmp, node.attributes().item(i).nodeName().string(), + new TQListViewItem(tmp, node.attributes().item(i).nodeName().string(), node.attributes().item(i).nodeValue().string()); } } @@ -128,7 +128,7 @@ void DOMTreeView::recursive(const DOM::Node &pNode, const DOM::Node &node) } } -void DOMTreeView::slotItemClicked(QListViewItem *cur_item) +void DOMTreeView::slotItemClicked(TQListViewItem *cur_item) { DOM::Node *handle = m_nodedict[cur_item]; if(handle) { @@ -137,11 +137,11 @@ void DOMTreeView::slotItemClicked(QListViewItem *cur_item) } } -KafkaDOMTreeDialog::KafkaDOMTreeDialog(QWidget *parent, KHTMLPart *part, const char* name, bool modal, WFlags fl ) - : QDialog(parent, name, modal, fl) +KafkaDOMTreeDialog::KafkaDOMTreeDialog(TQWidget *parent, KHTMLPart *part, const char* name, bool modal, WFlags fl ) + : TQDialog(parent, name, modal, fl) { - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) ); - DialogLayout = new QGridLayout( this, 1, 1, 11, 6, "DialogLayout"); + setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) ); + DialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "DialogLayout"); domview = new DOMTreeView(this, part, name); domview->setTitle(i18n( "Debugging KafkaWidget DOM Tree " )); DialogLayout->addWidget(domview, 1,1); |