From 3eebecacd576c35605aff01324ec66ad9825b0d7 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 20 Aug 2008 10:28:35 +0000 Subject: Fixed various small bugs. --- client/widgets/window.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/widgets/window.cc') 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()); -- cgit v1.2.3