summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2008-12-01 15:28:44 +0000
committerdeva <deva>2008-12-01 15:28:44 +0000
commit3ab207d95e47f81cf75effee3822cd787979cae7 (patch)
tree2b80cd75e0deeee1a5a3a20ba8f9716470dd99f9 /client/mainwindow.cc
parent40bad69cd77f32730f6939553d7f9667338c646f (diff)
Added 'compact' attribute in templates.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc4
1 files changed, 3 insertions, 1 deletions
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));