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

Oliver Kellogg okellogg at users.sourceforge.net
Sat Feb 18 14:03:15 UTC 2012


SVN commit 1280649 by okellogg:

- UMLListViewItem::creating(): Add missing getter for m_bCreating.
- UMLListViewItem::startRename(): Remove obsolete logic for calling
  cancelRename() when m_bCreating.


 M  +4 -4      umllistviewitem.cpp  
 M  +1 -0      umllistviewitem.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistviewitem.cpp #1280648:1280649
@@ -452,6 +452,10 @@
     m_bCreating = creating;
 }
 
+bool UMLListViewItem::creating() const {
+    return m_bCreating;
+}
+
 /**
  * Set the pixmap corresponding to the given IconType.
  */
@@ -468,11 +472,7 @@
 {
     DEBUG(DBG_LVI) << this << " - column=" << col << ", text=" << text(col);
     m_label = text(col);  // keep the old text
-    if (m_bCreating) {
-        UMLListView* listView = static_cast<UMLListView*>(treeWidget());
-        listView->cancelRename(this);
     }
-}
 
 /**
  * This function is called if the user presses Enter during in-place renaming
--- trunk/KDE/kdesdk/umbrello/umbrello/umllistviewitem.h #1280648:1280649
@@ -121,6 +121,7 @@
     QString toolTip();
 
     void setCreating(bool creating);
+    bool creating() const;
 
     void setIcon(Icon_Utils::IconType iconType);
 




More information about the umbrello-devel mailing list