diff options
Diffstat (limited to 'client/widgets/window.cc')
| -rw-r--r-- | client/widgets/window.cc | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/client/widgets/window.cc b/client/widgets/window.cc index bda3667..c385d04 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -31,6 +31,8 @@  Window::Window(QDomNode &node, MacroWindow *macrowindow)    : QWidget(NULL), Widget(node, macrowindow)  { +  setWindowFlags(Qt::WindowContextHelpButtonHint | Qt::WindowSystemMenuHint); +    QDomElement elem = node.toElement();    if(elem.hasAttribute("width")) { @@ -43,6 +45,10 @@ Window::Window(QDomNode &node, MacroWindow *macrowindow)      resize(width(), elem.attribute("height").toInt());    } +  if(elem.hasAttribute("help")) { +    setToolTip(elem.attribute("help")); +  } +    if(elem.hasAttribute("fixed")) {      if(elem.attribute("fixed") == "true") {        setFixedSize(width(), height());  | 
