[Uml-devel] KDE/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat May 21 16:41:09 UTC 2005


SVN commit 416589 by okellogg:

addNewItem(): QListViewItem::startRename() implicitly calls QListView::ensureItemVisible()

 M  +3 -2      trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #416588:416589
@@ -2059,10 +2059,11 @@
 		return;
 	}
 	m_bIgnoreCancelRename = false;
-	ensureItemVisible(newItem);
 	newItem->setOpen( true );
 	newItem->setCreating( true );
-	newItem->startRename( 0 );
+	newItem->startRename( 0 );  // calls QListView::ensureItemVisible()
+	// When the user accepts the rename operation, UMLListViewItem::okRename()
+	// is called (automatically by QListViewItem.)
 }
 
 bool UMLListView::slotItemRenamed( QListViewItem * item , int /*col*/ ) {




More information about the umbrello-devel mailing list