summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/menubareditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/menubareditor.cpp')
-rw-r--r--kdevdesigner/designer/menubareditor.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdevdesigner/designer/menubareditor.cpp b/kdevdesigner/designer/menubareditor.cpp
index e2098b5a..65b55522 100644
--- a/kdevdesigner/designer/menubareditor.cpp
+++ b/kdevdesigner/designer/menubareditor.cpp
@@ -273,7 +273,7 @@ void MenuBarEditor::removeItem( MenuBarEditorItem * item )
int MenuBarEditor::findItem( MenuBarEditorItem * item )
{
- return itemList.tqfindRef( item );
+ return itemList.findRef( item );
}
int MenuBarEditor::findItem( PopupMenuEditor * menu )
@@ -314,7 +314,7 @@ int MenuBarEditor::findItem( TQPoint & pos )
r = TQRect( x, y, s.width(), s.height() );
- if ( r.tqcontains( pos ) )
+ if ( r.contains( pos ) )
return itemList.at();
addItemSizeToCoords( i, x, y, w );
@@ -334,7 +334,7 @@ int MenuBarEditor::findItem( TQPoint & pos )
r = TQRect( x, y, s.width(), s.height() );
- if ( r.tqcontains( pos ) )
+ if ( r.contains( pos ) )
return itemList.count();
return itemList.count() + 1;
@@ -415,8 +415,8 @@ void MenuBarEditor::exchange( int a, int b )
ia == &addItem || ia == &addSeparator ||
ib == &addItem || ib == &addSeparator )
return; // do nothing
- itemList.tqreplace( b, ia );
- itemList.tqreplace( a, ib );
+ itemList.replace( b, ia );
+ itemList.replace( a, ib );
}
void MenuBarEditor::showLineEdit( int index )
@@ -646,7 +646,7 @@ void MenuBarEditor::mouseMoveEvent( TQMouseEvent * e )
// If the item is dropped in the same list,
// we will have two instances of the same pointer
// in the list.
- itemList.tqfind( draggedItem );
+ itemList.find( draggedItem );
TQLNode * node = itemList.currentNode();
dropConfirmed = FALSE;
d->dragCopy(); // dragevents and stuff happens
@@ -1004,7 +1004,7 @@ void MenuBarEditor::dropInPlace( MenuBarEditorItem * i, const TQPoint & pos )
hideItem();
Command * cmd = 0;
- int iidx = itemList.tqfindRef( i );
+ int iidx = itemList.findRef( i );
if ( iidx != -1 ) { // internal dnd
cmd = new MoveMenuCommand( i18n( "Item Dragged" ), formWnd, this, iidx, idx );
item( iidx )->setVisible( TRUE );