Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #include "StorData.h"
  2.  
  3. StorData::StorData()
  4. {
  5.  
  6. }
  7.  
  8. StorData::~StorData()
  9. {
  10.  
  11. }
  12.  
  13. void StorData::Load (QString PathFile)
  14. {
  15. v_file_data = new QFile(PathFile);
  16. v_file_data->open(QIODevice::ReadOnly|QIODevice::Text);
  17.  
  18.  
  19. Xml_Setting.setContent(v_file_data);
  20.  
  21. QDomNodeList ListDialog = Xml_Setting.elementsByTagName("DocIpDoc");
  22.  
  23.  
  24. DialogCount = ListDialog.length();
  25. for(int k=0;k<DialogCount;k++)
  26. {
  27. QDomNodeList ListField = ListDialog.item(k).childNodes();
  28.  
  29.  
  30. for(int l=0;l<(ListField.length());l++)
  31. {
  32.  
  33. l_vv_Field.append(ListField.item(l).toElement().text());
  34. //qDebug()<<ListField.item(l).toElement().text();
  35.  
  36. }
  37. }
  38. }
  39.  
  40.  
  41. int StorData::GetDialogsCount() const
  42. {
  43. return DialogCount;
  44.  
  45. }
  46.  
  47. QList<QString> StorData::GetFields() const
  48. {
  49. return l_vv_Field;
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement