summaryrefslogtreecommitdiff
path: root/client/test/util.cc
diff options
context:
space:
mode:
authordeva <deva>2011-06-28 06:38:10 +0000
committerdeva <deva>2011-06-28 06:38:10 +0000
commit6389aabffe198ece92b58ae34a905902c7eefe7c (patch)
treecfda4b340e462e5193f4ac2e6814cce5d707ca4f /client/test/util.cc
parent01febc40e2aad29bf6cf6cbeb457c44354aba0f9 (diff)
Complete rewrite of the way lua widget methods, 'inheritance' in particular, are handled.
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;
}
+