summaryrefslogtreecommitdiff
path: root/client/test/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/test/util.cc')
-rw-r--r--client/test/util.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/test/util.cc b/client/test/util.cc
index 1fd09d4..80556c8 100644
--- a/client/test/util.cc
+++ b/client/test/util.cc
@@ -9,17 +9,14 @@
MacroWindow *createMacroWindow()
{
- MacroWindow *m;
-
QSettings settings("pracro.ini", QSettings::IniFormat);
settings.beginGroup("server");
QString host = settings.value("host").toString();
int port = settings.value("port").toInt();
settings.endGroup();
- NetCom netcom(host, port);
- QDomNode node;
- m = new MacroWindow(netcom, node, "test");
+ NetCom netcom(host, port);
+ MacroWindow *m = new MacroWindow(netcom, "test", true, false, NULL, NULL);
return m;
}
@@ -33,3 +30,4 @@ QDomElement getWidgetElement(QString type, QString name, QString value)
return e;
}
+