summaryrefslogtreecommitdiffstats
path: root/src/itemdocument.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commite05894553004a47b1e2f276bedcf5963b57a3932 (patch)
tree2c12af14a609c053131e3a463068fa7589e6ac6a /src/itemdocument.cpp
parent60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff)
downloadktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz
ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/itemdocument.cpp')
-rw-r--r--src/itemdocument.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/itemdocument.cpp b/src/itemdocument.cpp
index 215b88a..1742094 100644
--- a/src/itemdocument.cpp
+++ b/src/itemdocument.cpp
@@ -447,7 +447,7 @@ void ItemDocument::select( TQCanvasItem * item )
{
if (!item)
return;
- item->setSelected( selectList()->tqcontains( item ) || selectList()->addTQCanvasItem( item ) );
+ item->setSelected( selectList()->contains( item ) || selectList()->addTQCanvasItem( item ) );
}
@@ -533,7 +533,7 @@ void ItemDocument::distributeVertically( )
bool ItemDocument::registerUID( const TQString &UID )
{
- if ( m_idList.tqfindIndex(UID) == -1 )
+ if ( m_idList.findIndex(UID) == -1 )
{
m_idList.append(UID);
return true;
@@ -553,7 +553,7 @@ TQString ItemDocument::generateUID( TQString name )
{
name.remove( TQRegExp("__.*") ); // Change 'node__13' to 'node', for example
TQString idAttempt = name;
-// if ( idAttempt.tqfind("__") != -1 ) idAttempt.truncate( idAttempt.tqfind("__") );
+// if ( idAttempt.find("__") != -1 ) idAttempt.truncate( idAttempt.find("__") );
while ( !registerUID(idAttempt) ) { idAttempt = name + "__" + TQString::number(m_nextIdNum++); }
return idAttempt;
@@ -969,7 +969,7 @@ void ItemDocument::raiseZ( const ItemList & itemList )
Item * previousData = (previous == m_zOrder.end()) ? 0l : previous.data();
Item * currentData = it.data();
- if ( currentData && previousData && itemList.tqcontains(currentData) && !itemList.tqcontains(previousData) )
+ if ( currentData && previousData && itemList.contains(currentData) && !itemList.contains(previousData) )
{
previous.data() = currentData;
it.data() = previousData;
@@ -1003,7 +1003,7 @@ void ItemDocument::lowerZ( const ItemList & itemList )
Item * previousData = previous.data();
Item * currentData = it.data();
- if ( currentData && previousData && itemList.tqcontains(currentData) && !itemList.tqcontains(previousData) )
+ if ( currentData && previousData && itemList.contains(currentData) && !itemList.contains(previousData) )
{
previous.data() = currentData;
it.data() = previousData;