[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed Dec 29 01:33:01 UTC 2004


CVS commit by okellogg: 

okRename(): Handle lvt_Template.


  M +5 -1      umllistviewitem.cpp   1.66


--- kdesdk/umbrello/umbrello/umllistviewitem.cpp  #1.65:1.66
@@ -349,4 +349,5 @@ void UMLListViewItem::okRename( int col 
                 case Uml::lvt_Datatype:
                 case Uml::lvt_Enum:
+                case Uml::lvt_Template:
                         if (m_pObject == NULL || !doc->isUnique(newText)) {
                                 cancelRenameWithMsg();
@@ -467,5 +468,8 @@ void UMLListViewItem::okRename( int col 
                         break;
                 default:
-                        cancelRenameWithMsg();
+                        KMessageBox::error( kapp->mainWidget() ,
+                            i18n("Renaming an item of listview type %1 is not yet implemented.").arg(m_Type),
+                            i18n("Function Not Implemented") );
+                        QListViewItem::setText(0, m_Label);
                         break;
         }






More information about the umbrello-devel mailing list