summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2009-07-24 13:59:36 +0000
committerdeva <deva>2009-07-24 13:59:36 +0000
commit408c7c5b36e1058a76741a22876593ee8c042dd4 (patch)
tree2fa4fb2a1586a0019349f3da569cbb1fc86c3dc5 /client/mainwindow.cc
parentc0392425fbc024084da9c626fa47814a34eba3e7 (diff)
Introduced a new template tag called 'header' to replace the macro-tag-with-header-attribute construct.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 91d87a7..14ed60b 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -125,9 +125,12 @@ void MainWindow::update()
QDomNodeList macronodes = coursenode.childNodes();
for(int j = 0; j < macronodes.count(); j++) {
+
QDomNode macronode = macronodes.at(j);
QDomElement macroelement = macronode.toElement();
+ // printf("%s\n", macroelement.tagName().toStdString().c_str());
+
QString macroname = macroelement.attribute("name");
bool found = false;
@@ -137,7 +140,8 @@ void MainWindow::update()
i++;
}
- if(found == false || macroelement.hasAttribute("header")) {
+ // if(found == false || macroelement.hasAttribute("header")) {
+ if(found == false || macroelement.tagName() == "header") {
QString num;
num.sprintf("%04d", j);
Macro macro(macronode);