summaryrefslogtreecommitdiffstats
path: root/kate/kpybrowser/kpybrowser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /kate/kpybrowser/kpybrowser.cpp
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/kpybrowser/kpybrowser.cpp')
-rw-r--r--kate/kpybrowser/kpybrowser.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kate/kpybrowser/kpybrowser.cpp b/kate/kpybrowser/kpybrowser.cpp
index 183e1e7..5d2c268 100644
--- a/kate/kpybrowser/kpybrowser.cpp
+++ b/kate/kpybrowser/kpybrowser.cpp
@@ -181,8 +181,8 @@ getOpenNodes (TQValueList < TQString > *open_nodes, PyBrowseNode * node)
}
-KPyBrowser::KPyBrowser (TQWidget * parent, const char *name):
-KListView (parent, name)
+KPyBrowser::KPyBrowser (TQWidget * tqparent, const char *name):
+KListView (tqparent, name)
{
addColumn(i18n("Name"));
@@ -286,11 +286,11 @@ KPyBrowser::parseText (TQString & pytext)
line = &(*iter);
if (class_rx.search(*line) >= 0)
{
- //KMessageBox::information(this, *line, TQString("Found class on line %1").arg(line_no));
+ //KMessageBox::information(this, *line, TQString("Found class on line %1").tqarg(line_no));
//strip out the beginning class and ending colon
class_sig = line->stripWhiteSpace ().mid (6);
class_sig = class_sig.left (class_sig.length () - 1);
- paren_i = class_sig.find ("(");
+ paren_i = class_sig.tqfind ("(");
class_name = class_sig.left (paren_i);
last_class_node =
@@ -305,8 +305,8 @@ KPyBrowser::parseText (TQString & pytext)
{
//strip off the leading def and the ending colon
method_sig = line->stripWhiteSpace ().mid (4);
- method_sig = method_sig.left (method_sig.find (":"));
- paren_i = method_sig.find ("(");
+ method_sig = method_sig.left (method_sig.tqfind (":"));
+ paren_i = method_sig.tqfind ("(");
method_name = method_sig.left (paren_i);
last_method_node =
new PyBrowseNode (last_class_node, method_name, method_sig,
@@ -318,10 +318,10 @@ KPyBrowser::parseText (TQString & pytext)
}
if ((function_rx.search(*line) >= 0))
{
- //KMessageBox::information(this, *line, TQString("Found function on line %1").arg(line_no));
+ //KMessageBox::information(this, *line, TQString("Found function on line %1").tqarg(line_no));
function_sig = line->stripWhiteSpace ().mid (4);
- function_sig = function_sig.left (function_sig.find (":"));
- paren_i = function_sig.find ("(");
+ function_sig = function_sig.left (function_sig.tqfind (":"));
+ paren_i = function_sig.tqfind ("(");
function_name = function_sig.left (paren_i);
last_function_node =
new PyBrowseNode (function_root, function_name, function_sig,
@@ -359,7 +359,7 @@ KPyBrowser::tip (const TQPoint & p, TQRect & r, TQString & str)
str = "";
return;
}
- r = itemRect (item);
+ r = tqitemRect (item);
//r.setY(r.y() + 10);
PyBrowseNode *browse_node = dynamic_cast < PyBrowseNode * >(item);
@@ -380,7 +380,7 @@ KPyBrowser::tip (const TQPoint & p, TQRect & r, TQString & str)
/////////////////////////////////////////////////////////////////////
// KateFileList::KFLToolTip implementation
-KPyBrowser::KPBToolTip::KPBToolTip (TQWidget * parent):TQToolTip (parent)
+KPyBrowser::KPBToolTip::KPBToolTip (TQWidget * tqparent):TQToolTip (tqparent)
{
}
@@ -390,7 +390,7 @@ KPyBrowser::KPBToolTip::maybeTip (const TQPoint & p)
TQString str;
TQRect r;
- ((KPyBrowser *) parentWidget ())->tip (p, r, str);
+ ((KPyBrowser *) tqparentWidget ())->tip (p, r, str);
if (!str.isEmpty () && r.isValid ())
tip (r, str);