diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 627b091fad9df13695f249588e8a58f524eda0fa (patch) | |
tree | 98ff502a8743af48d8b88996e9a494fec4110586 /konq-plugins/fsview/treemap.cpp | |
parent | f6e9c8d694be3d1df338b385125e13db41af0b1f (diff) | |
download | tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.tar.gz tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/fsview/treemap.cpp')
-rw-r--r-- | konq-plugins/fsview/treemap.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/konq-plugins/fsview/treemap.cpp b/konq-plugins/fsview/treemap.cpp index 285230d..f77b37f 100644 --- a/konq-plugins/fsview/treemap.cpp +++ b/konq-plugins/fsview/treemap.cpp @@ -1093,7 +1093,7 @@ void TreeMapTip::maybeTip( const TQPoint& pos ) if (rList) { TQRect* r; for(r=rList->first();r;r=rList->next()) - if (r->tqcontains(pos)) + if (r->contains(pos)) tip(*r, p->tipString(i)); } } @@ -1433,10 +1433,10 @@ void TreeMapWidget::setMinimalArea(int area) void TreeMapWidget::deletingItem(TreeMapItem* i) { // remove any references to the item to be deleted - while(_selection.tqfindRef(i) > -1) + while(_selection.findRef(i) > -1) _selection.remove(); - while(_tmpSelection.tqfindRef(i) > -1) + while(_tmpSelection.findRef(i) > -1) _tmpSelection.remove(); if (_current == i) _current = 0; @@ -1478,7 +1478,7 @@ TreeMapItem* TreeMapWidget::item(int x, int y) const TreeMapItem* p = _base; TreeMapItem* i; - if (!TQT_TQRECT_OBJECT(rect()).tqcontains(x, y)) return 0; + if (!TQT_TQRECT_OBJECT(rect()).contains(x, y)) return 0; if (DEBUG_DRAWING) kdDebug(90100) << "item(" << x << "," << y << "):" << endl; while (1) { @@ -1495,7 +1495,7 @@ TreeMapItem* TreeMapWidget::item(int x, int y) const << "-" << i->tqitemRect().width() << "x" << i->tqitemRect().height() << ")" << endl; - if (i->tqitemRect().tqcontains(x, y)) { + if (i->tqitemRect().contains(x, y)) { if (DEBUG_DRAWING) kdDebug(90100) << " .. Got. Index " << idx << endl; @@ -1546,7 +1546,7 @@ TreeMapItem* TreeMapWidget::visibleItem(TreeMapItem* i) const (i->tqitemRect().height() <1))) { TreeMapItem* p = i->tqparent(); if (!p) break; - int idx = p->tqchildren()->tqfindRef(i); + int idx = p->tqchildren()->findRef(i); idx--; if (idx<0) i = p; @@ -1596,12 +1596,12 @@ TreeMapItemList TreeMapWidget::diff(TreeMapItemList& l1, TreeMapItem* item; while ( (item = it1.current()) != 0 ) { ++it1; - if (l2.tqcontainsRef(item) > 0) continue; + if (l2.containsRef(item) > 0) continue; l.append(item); } while ( (item = it2.current()) != 0 ) { ++it2; - if (l1.tqcontainsRef(item) > 0) continue; + if (l1.containsRef(item) > 0) continue; l.append(item); } @@ -1668,12 +1668,12 @@ bool TreeMapWidget::clearSelection(TreeMapItem* tqparent) bool TreeMapWidget::isSelected(TreeMapItem* i) const { - return _selection.tqcontainsRef(i)>0; + return _selection.containsRef(i)>0; } bool TreeMapWidget::isTmpSelected(TreeMapItem* i) { - return _tmpSelection.tqcontainsRef(i)>0; + return _tmpSelection.containsRef(i)>0; } @@ -1938,7 +1938,7 @@ int nextVisible(TreeMapItem* i) TreeMapItem* p = i->tqparent(); if (!p || p->tqitemRect().isEmpty()) return -1; - int idx = p->tqchildren()->tqfindRef(i); + int idx = p->tqchildren()->findRef(i); if (idx<0) return -1; while (idx < (int)p->tqchildren()->count()-1) { @@ -1956,7 +1956,7 @@ int prevVisible(TreeMapItem* i) TreeMapItem* p = i->tqparent(); if (!p || p->tqitemRect().isEmpty()) return -1; - int idx = p->tqchildren()->tqfindRef(i); + int idx = p->tqchildren()->findRef(i); if (idx<0) return -1; while (idx > 0) { |