1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "util.h" #include <QDomDocument> MacroWindow *createMacroWindow() { MacroWindow *m; m = NULL; return m; } QDomElement getWidgetElement(QString type, QString name, QString value) { QDomDocument doc; QDomElement e = doc.createElement(type); e.setAttribute("name", name); if(value != "") e.setAttribute("value", value); return e; }