From cc3e4ba1e4c93ab2198453e04039e57387a79e60 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 29 Nov 2011 12:19:19 +0100 Subject: remove old debug code. --- client/widgets/window.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'client/widgets/window.cc') diff --git a/client/widgets/window.cc b/client/widgets/window.cc index a305171..b491d44 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -30,14 +30,9 @@ #include #include -//#define DEBUG(fmt...) printf(fmt) -#define DEBUG(ftm...) - Window::Window(QDomNode &node, MacroWindow *macrowindow) : Widget(node, macrowindow) { - DEBUG("window\n"); - widget = new QWidget(NULL); widget->setWindowFlags(Qt::WindowContextHelpButtonHint | @@ -65,8 +60,6 @@ Window::Window(QDomNode &node, MacroWindow *macrowindow) Window::~Window() { - DEBUG("~window\n"); - //delete widget; } -- cgit v1.2.3 From 45336cbecb6eff3317a365f271dc548c297f4ffa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 1 Dec 2011 09:33:12 +0100 Subject: Fix setKeyboardFocus to work recursive on all widgets. Fixes bug where MultiList did not receive keyboard focus when it is the first child in the macro window. --- client/widgets/window.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'client/widgets/window.cc') diff --git a/client/widgets/window.cc b/client/widgets/window.cc index b491d44..7aa6374 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -65,14 +65,5 @@ Window::~Window() bool Window::setKeyboardFocus() { - QVector< Widget* >::iterator i = children.begin(); - while(i != children.end()) { - Widget *w = *i; - if(w) { - if(w->setKeyboardFocus()) return true; - } - i++; - } - return false; } -- cgit v1.2.3