blob: 48ea6f6faf5268fcfc299bcd6708ead588a2eeed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "statebuilder.h"
#include "fqterm.h"
#include "fqterm_path.h"
#include <QDomDocument>
#include <QFile>
namespace FQTerm {
void StateBuilder::BuildState()
{
QDomDocument domDocument;
QFile welcome(getPath(RESOURCE) + "unite/welcom.xml");
welcome.open(QIODevice::ReadOnly);
QString errorStr;
int errorLine;
int errorColumn;
domDocument.setContent(welcome.readAll(), true, &errorStr, &errorLine, &errorColumn);
QDomElement root = domDocument.firstChildElement("page");
if (root.isNull())
{
}
QDomAttr a = root.attributeNode("type");
//cout << a.value() << endl;
}
}
|