summaryrefslogtreecommitdiffstats
path: root/src/itemdocument.cpp
diff options
context:
space:
mode:
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;