diff options
Diffstat (limited to 'client/test/util.cc')
-rw-r--r-- | client/test/util.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/test/util.cc b/client/test/util.cc new file mode 100644 index 0000000..257b561 --- /dev/null +++ b/client/test/util.cc @@ -0,0 +1,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; +} |