examples/xml/dombookmarks/xbeltree.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    88         return false;
    88         return false;
    89     }
    89     }
    90 
    90 
    91     clear();
    91     clear();
    92 
    92 
    93     disconnect(this, SIGNAL(itemChanged(QTreeWidgetItem *, int)),
    93     disconnect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
    94                this, SLOT(updateDomElement(QTreeWidgetItem *, int)));
    94                this, SLOT(updateDomElement(QTreeWidgetItem*,int)));
    95 
    95 
    96     QDomElement child = root.firstChildElement("folder");
    96     QDomElement child = root.firstChildElement("folder");
    97     while (!child.isNull()) {
    97     while (!child.isNull()) {
    98         parseFolderElement(child);
    98         parseFolderElement(child);
    99         child = child.nextSiblingElement("folder");
    99         child = child.nextSiblingElement("folder");
   100     }
   100     }
   101 
   101 
   102     connect(this, SIGNAL(itemChanged(QTreeWidgetItem *, int)),
   102     connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
   103             this, SLOT(updateDomElement(QTreeWidgetItem *, int)));
   103             this, SLOT(updateDomElement(QTreeWidgetItem*,int)));
   104 
   104 
   105     return true;
   105     return true;
   106 }
   106 }
   107 
   107 
   108 bool XbelTree::write(QIODevice *device)
   108 bool XbelTree::write(QIODevice *device)