Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "StorData.h"
- StorData::StorData()
- {
- }
- StorData::~StorData()
- {
- }
- void StorData::Load (QString PathFile)
- {
- v_file_data = new QFile(PathFile);
- v_file_data->open(QIODevice::ReadOnly|QIODevice::Text);
- Xml_Setting.setContent(v_file_data);
- QDomNodeList ListDialog = Xml_Setting.elementsByTagName("DocIpDoc");
- DialogCount = ListDialog.length();
- for(int k=0;k<DialogCount;k++)
- {
- QDomNodeList ListField = ListDialog.item(k).childNodes();
- for(int l=0;l<(ListField.length());l++)
- {
- l_vv_Field.append(ListField.item(l).toElement().text());
- //qDebug()<<ListField.item(l).toElement().text();
- }
- }
- }
- int StorData::GetDialogsCount() const
- {
- return DialogCount;
- }
- QList<QString> StorData::GetFields() const
- {
- return l_vv_Field;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement