diff options
Diffstat (limited to 'client/widgets/window.cc')
-rw-r--r-- | client/widgets/window.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/widgets/window.cc b/client/widgets/window.cc index 95f01a6..217bf21 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -33,7 +33,8 @@ Window::Window(QDomNode node) : QWidget(NULL) if(elem.hasAttribute("name")) { widget_name = elem.attribute("name"); } else { - printf("ERROR!! Widget has no name...\n"); + printf("XML ERROR!! Unnamed widget of type: %s\n", + elem.tagName().toStdString().c_str()); } if(elem.hasAttribute("width")) { @@ -44,8 +45,16 @@ Window::Window(QDomNode node) : QWidget(NULL) setMinimumHeight(elem.attribute("height").toInt()); } + if(elem.hasAttribute("fixed")) { + if(elem.attribute("fixed") == "true") { + setFixedSize(width(), height()); + } + } + if(elem.hasAttribute("caption")) { setWindowTitle(elem.attribute("caption")); + } else { + setWindowTitle(elem.attribute("")); } } |