From 3541224f0fb3d5b7b531eef45318d7e41cb51915 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 19 Sep 2008 12:07:48 +0000 Subject: First working version of the collapser-pracro view. --- client/macro.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/macro.cc') diff --git a/client/macro.cc b/client/macro.cc index 7f3286c..8160c9f 100644 --- a/client/macro.cc +++ b/client/macro.cc @@ -76,7 +76,8 @@ static MacroEventFilter *macro_event_filter = NULL; */ static void create_macro(QString course, QString macro) { - QDomDocument xml_doc = Global::netcom->send(course, macro); + NetCom netcom("", 0, "", ""); + QDomDocument xml_doc = netcom.send(course, macro); cleanup_macros(); @@ -93,7 +94,7 @@ static void create_macro(QString course, QString macro) QDomNode macronode = macros.at(j); // Only create if the macro contains something. if(macronode.childNodes().count()) - macrowindows.push_back( new MacroWindow( macronode ) ); + macrowindows.push_back( new MacroWindow( netcom, macronode, "dims" ) ); } } -- cgit v1.2.3