diff options
author | deva <deva> | 2008-12-01 15:28:44 +0000 |
---|---|---|
committer | deva <deva> | 2008-12-01 15:28:44 +0000 |
commit | 3ab207d95e47f81cf75effee3822cd787979cae7 (patch) | |
tree | 2b80cd75e0deeee1a5a3a20ba8f9716470dd99f9 /client/mainwindow.cc | |
parent | 40bad69cd77f32730f6939553d7f9667338c646f (diff) |
Added 'compact' attribute in templates.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 4 |
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)); |