summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/variableslistview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/components/debugger/variableslistview.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/debugger/variableslistview.cpp')
-rw-r--r--quanta/components/debugger/variableslistview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/components/debugger/variableslistview.cpp b/quanta/components/debugger/variableslistview.cpp
index c9d77de3..03ddd7d3 100644
--- a/quanta/components/debugger/variableslistview.cpp
+++ b/quanta/components/debugger/variableslistview.cpp
@@ -21,7 +21,7 @@
#include <kiconloader.h>
#include <kdeversion.h>
#include <kinputdialog.h>
-#include <qclipboard.h>
+#include <tqclipboard.h>
// Quanta includes
#include "variableslistview.h"
@@ -47,12 +47,12 @@ namespace VariablesListViewColumns
};
}
-VariablesListView::VariablesListView(QWidget *parent, const char *name)
+VariablesListView::VariablesListView(TQWidget *parent, const char *name)
: KListView(parent, name)
{
// If you change here, change the VariablesListViewColumns enums above
addColumn(i18n("Name"));
- addColumn(QString::null);
+ addColumn(TQString::null);
addColumn(i18n("Value"));
addColumn(i18n("Type"));
addColumn(i18n("Size"));
@@ -60,16 +60,16 @@ VariablesListView::VariablesListView(QWidget *parent, const char *name)
setSorting(-1); // No sorting
m_variablePopup = new KPopupMenu(this);
- m_variablePopup->insertItem(SmallIcon("editdelete"), i18n("&Remove"), this, SLOT(slotRemoveSelected()), 0, removeWatch);
+ m_variablePopup->insertItem(SmallIcon("editdelete"), i18n("&Remove"), this, TQT_SLOT(slotRemoveSelected()), 0, removeWatch);
if(quantaApp->debugger()->client()->supports(DebuggerClientCapabilities::VariableSetValue))
- m_variablePopup->insertItem(SmallIcon("edit"), i18n("&Set Value"), this, SLOT(slotVariableSetValue()), 0, setValue);
+ m_variablePopup->insertItem(SmallIcon("edit"), i18n("&Set Value"), this, TQT_SLOT(slotVariableSetValue()), 0, setValue);
- m_variablePopup->insertItem(SmallIcon("viewmag"), i18n("&Dump in Messages Log"), this, SLOT(slotVariableDump()), 0, dumpValue);
+ m_variablePopup->insertItem(SmallIcon("viewmag"), i18n("&Dump in Messages Log"), this, TQT_SLOT(slotVariableDump()), 0, dumpValue);
- m_variablePopup->insertItem(SmallIcon("editcopy"), i18n("&Copy to Clipboard"), this, SLOT(slotVariableCopyToClipboard()), 0, copyValue);
+ m_variablePopup->insertItem(SmallIcon("editcopy"), i18n("&Copy to Clipboard"), this, TQT_SLOT(slotVariableCopyToClipboard()), 0, copyValue);
- connect(this, SIGNAL( contextMenu( KListView *, QListViewItem *, const QPoint & ) ), this, SLOT(slotVariableContextMenu(KListView *, QListViewItem *, const QPoint &)));
+ connect(this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ), this, TQT_SLOT(slotVariableContextMenu(KListView *, TQListViewItem *, const TQPoint &)));
}
@@ -104,7 +104,7 @@ void VariablesListView::slotRemoveSelected()
delete v;
}
-void VariablesListView::keyPressEvent(QKeyEvent *e)
+void VariablesListView::keyPressEvent(TQKeyEvent *e)
{
if(e->key() != Qt::Key_Delete)
{
@@ -161,11 +161,11 @@ void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariab
KListViewItem * item;
// Remove children that doesen't exist anymore
- QPtrList<DebuggerVariable> oldlist = oldvar->values();
+ TQPtrList<DebuggerVariable> oldlist = oldvar->values();
for(DebuggerVariable* oldchild = oldlist.last(); oldchild; oldchild = oldlist.prev())
{
bool found = false;
- QPtrList<DebuggerVariable> newlist = newvar->values();
+ TQPtrList<DebuggerVariable> newlist = newvar->values();
for(DebuggerVariable* newchild = newlist.last(); newchild; newchild = newlist.prev())
{
if(newchild->name() == oldchild->name())
@@ -179,11 +179,11 @@ void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariab
}
// Update and add children
- QPtrList<DebuggerVariable> newlist = newvar->values();
+ TQPtrList<DebuggerVariable> newlist = newvar->values();
for(DebuggerVariable* newchild = newlist.last(); newchild; newchild = newlist.prev())
{
bool found = false;
- QPtrList<DebuggerVariable> oldlist = oldvar->values();
+ TQPtrList<DebuggerVariable> oldlist = oldvar->values();
for(DebuggerVariable* oldchild = oldlist.last(); oldchild; oldchild = oldlist.prev())
{
if(newchild->name() == oldchild->name())
@@ -215,11 +215,11 @@ void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariab
item->setText(VariablesListViewColumns::Name, oldvar->name());
item->setText(VariablesListViewColumns::Type, oldvar->typeName());
item->setText(VariablesListViewColumns::Size, oldvar->sizeName());
- item->setText(VariablesListViewColumns::Value, (newvar->isScalar() ? oldvar->value() : QString()));
+ item->setText(VariablesListViewColumns::Value, (newvar->isScalar() ? oldvar->value() : TQString()));
}
-void VariablesListView::slotVariableContextMenu(KListView *, QListViewItem *, const QPoint& point)
+void VariablesListView::slotVariableContextMenu(KListView *, TQListViewItem *, const TQPoint& point)
{
if(!selectedItem())
return;
@@ -242,7 +242,7 @@ void VariablesListView::slotVariableSetValue()
DebuggerVariable v(selected());
- QString newvalue;
+ TQString newvalue;
switch(v.type())
{
case DebuggerVariableTypes::String:
@@ -284,7 +284,7 @@ void VariablesListView::slotVariableCopyToClipboard( )
DebuggerVariable *v = selected(true);
if(!v)
return;
- QApplication::clipboard()->setText(v->value());
+ TQApplication::clipboard()->setText(v->value());
}
#include "variableslistview.moc"