Logo Search packages:      
Sourcecode: katalog version File versions  Download package

bool Katalog::rename ( QStringList &  path,
QString &  newName 
)

Rename a node

Definition at line 154 of file katalog.cpp.

References findNode(), and m_changed.

{
  if(newName.isEmpty())
    return FALSE;
  
  QDomNode srcNode = findNode(path);

  if(srcNode.isNull())
    return FALSE;
  
  srcNode.toElement().removeAttribute("name");
  
  srcNode.toElement().setAttribute("name", newName);
  
  m_changed = true;

  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index