summaryrefslogtreecommitdiff
path: root/client/test/util.cc
blob: 257b561d966eef16699af7a7a61e465449d14d9a (plain)
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;
}