summaryrefslogtreecommitdiff
path: root/client/widgets/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/window.cc')
-rw-r--r--client/widgets/window.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/widgets/window.cc b/client/widgets/window.cc
index b480189..a305171 100644
--- a/client/widgets/window.cc
+++ b/client/widgets/window.cc
@@ -69,3 +69,17 @@ Window::~Window()
//delete widget;
}
+
+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;
+}