From ed9e290b441a6486c576c2e2e4baa69fa0f3ed37 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 2 Aug 2011 08:00:20 +0000 Subject: New 'open course' feature. --- client/macro.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/macro.cc') diff --git a/client/macro.cc b/client/macro.cc index dfe464d..320faa3 100644 --- a/client/macro.cc +++ b/client/macro.cc @@ -35,8 +35,8 @@ #include "macrodrawer.h" #include "macrowindow.h" -Macro::Macro(Entities &e, NetCom &n, QString t, QScrollArea *s) - : entities(e), netcom(n), templ(t) +Macro::Macro(Entities &e, NetCom &n, QString c, QString t, QScrollArea *s) + : entities(e), netcom(n), course(c), templ(t) { window = NULL; drawer = NULL; @@ -69,7 +69,7 @@ void Macro::update(QDomNode &node) drawer = new MacroDrawer(this, elem.attribute("caption", name)); if(window == NULL) { - window = new MacroWindow(netcom, templ, isstatic, iscompact, + window = new MacroWindow(netcom, course, templ, isstatic, iscompact, scrollarea, drawer); QFont f = window->font(); -- cgit v1.2.3