summaryrefslogtreecommitdiffstats
path: root/kcachegrind/kcachegrind/partselection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcachegrind/kcachegrind/partselection.cpp')
-rw-r--r--kcachegrind/kcachegrind/partselection.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kcachegrind/kcachegrind/partselection.cpp b/kcachegrind/kcachegrind/partselection.cpp
index dfd1b096..3b1e6063 100644
--- a/kcachegrind/kcachegrind/partselection.cpp
+++ b/kcachegrind/kcachegrind/partselection.cpp
@@ -17,7 +17,7 @@
*/
/*
- * For part file selection, to be put into a QDockWindow
+ * For part file selection, to be put into a TQDockWindow
*/
#include <tqtimer.h>
@@ -36,8 +36,8 @@
#include "partselection.h"
#include "partgraph.h"
-PartSelection::PartSelection( TQWidget* parent, const char* name)
- : PartSelectionBase(parent, name)
+PartSelection::PartSelection( TQWidget* tqparent, const char* name)
+ : PartSelectionBase(tqparent, name)
{
_data = 0;
_costType = 0;
@@ -148,7 +148,7 @@ void PartSelection::currentChangedSlot(TreeMapItem* i, bool kbd)
TQString str = i->text(0);
if (!i->text(1).isEmpty())
str += " (" + i->text(1) + ")";
- TQString msg = i18n("Profile Part Overview: Current is '%1'").arg(str);
+ TQString msg = i18n("Profile Part Overview: Current is '%1'").tqarg(str);
emit showMessage(msg, 5000);
if (_showInfo) fillInfo();
@@ -203,7 +203,7 @@ void PartSelection::selectionChanged()
TracePart* part;
// if nothing is selected, activate all parts
- TreeMapItemList* list = partAreaWidget->base()->children();
+ TreeMapItemList* list = partAreaWidget->base()->tqchildren();
if (!list) return;
for (i=list->first();i;i=list->next())
@@ -235,11 +235,11 @@ void PartSelection::activePartsChangedSlot(const TracePartList& list)
kdDebug() << "Entering PartSelection::activePartsChangedSlot" << endl;
TreeMapItem* i;
- TreeMapItemList l = *partAreaWidget->base()->children();
+ TreeMapItemList l = *partAreaWidget->base()->tqchildren();
// first deselect inactive, then select active (makes current active)
for (i=l.first();i;i=l.next()) {
TracePart* part = ((PartItem*)i)->part();
- bool active = (list.containsRef(part)>0);
+ bool active = (list.tqcontainsRef(part)>0);
if (!active && partAreaWidget->isSelected(i)) {
#if 0
qDebug("PartSelection::partsChangedSlot: Part %s changed to unselected.",
@@ -251,7 +251,7 @@ void PartSelection::activePartsChangedSlot(const TracePartList& list)
}
for (i=l.first();i;i=l.next()) {
TracePart* part = ((PartItem*)i)->part();
- bool active = (list.containsRef(part)>0);
+ bool active = (list.tqcontainsRef(part)>0);
if (active && !partAreaWidget->isSelected(i)) {
#if 0
qDebug("PartSelection::partsChangedSlot: Part %s changed to selected.",
@@ -310,7 +310,7 @@ void PartSelection::contextMenuRequested(TreeMapItem* i,
str = i18n("Select") + " '" + ni->text(0) + "'";
popup.insertItem(str, id);
- ni = ni->parent();
+ ni = ni->tqparent();
id++;
}
}
@@ -365,7 +365,7 @@ void PartSelection::contextMenuRequested(TreeMapItem* i,
if (r>=100) {
TreeMapItem* ci = i;
while (ci && r>100) {
- ci = ci->parent();
+ ci = ci->tqparent();
r--;
}
doubleClicked(ci);
@@ -381,7 +381,7 @@ void PartSelection::contextMenuRequested(TreeMapItem* i,
case 2:
// select all parts
{
- TreeMapItemList list = *partAreaWidget->base()->children();
+ TreeMapItemList list = *partAreaWidget->base()->tqchildren();
partAreaWidget->setRangeSelection(list.first(), list.last(), true);
}
break;
@@ -545,7 +545,7 @@ void PartSelection::fillInfo()
TQString info = _data->activePartRange();
TreeMapItem* i = partAreaWidget->current();
- while (i && i->rtti()!=2) i = i->parent();
+ while (i && i->rtti()!=2) i = i->tqparent();
if (i) {
TracePart* part = ((PartItem*)i)->part();