Changeset 67 in flair-src for trunk/tools/FlairGCS/src/XmlWidget.cpp


Ignore:
Timestamp:
08/29/16 16:58:23 (5 years ago)
Author:
Sanahuja Guillaume
Message:

corrections bugs checkpoint map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/XmlWidget.cpp

    r15 r67  
    291291}
    292292
     293void XmlWidget::RemoveAllAttributes() {
     294  QString name = write_elem.attribute("name");
     295
     296  QDomNamedNodeMap attributes=write_elem.attributes();
     297  while(attributes.count()!=0) {
     298    printf("%i %s\n",attributes.count(),attributes.item(0).toAttr().name().toLocal8Bit().constData());
     299    write_elem.removeAttribute(attributes.item(0).toAttr().name());
     300  }
     301  SetAttribute("name", name);
     302}
     303
    293304void XmlWidget::RenamedFrom(QString old_name) {
    294305  QString name = write_elem.attribute("name");
Note: See TracChangeset for help on using the changeset viewer.