From 3ab207d95e47f81cf75effee3822cd787979cae7 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 1 Dec 2008 15:28:44 +0000 Subject: Added 'compact' attribute in templates. --- client/mainwindow.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index bcb1b4e..0997c53 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -81,8 +81,10 @@ void MainWindow::update() if(macros.find(macroname) == macros.end()) { bool isstatic = false; + bool iscompact = false; if(xml_elem.attribute("static", "false") == "true") isstatic = true; - macros[macroname] = new MacroWindow(&netcom, macronode, course, !isstatic); + if(xml_elem.attribute("compact", "false") == "true") iscompact = true; + macros[macroname] = new MacroWindow(&netcom, macronode, course, !isstatic, iscompact); QGroupBox *g = new QGroupBox(); g->setTitle(" " + xml_elem.attribute("caption", macroname)); -- cgit v1.2.3