summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 10:52:33 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 10:52:33 (GMT)
commite1dd9242895e27afa63b255198ad541f738c06ef (patch)
tree9d9b12c71614b8ca3fd495bc2ec8abf056b7b641 /src/gui/kernel/qapplication_p.h
parent81b5a795a47f6d03c81756d7b5b4501f60528c41 (diff)
downloadQt-e1dd9242895e27afa63b255198ad541f738c06ef.zip
Qt-e1dd9242895e27afa63b255198ad541f738c06ef.tar.gz
Qt-e1dd9242895e27afa63b255198ad541f738c06ef.tar.bz2
remove code duplication for setting the focus widget based on t
he focus policy refactor duplicated code in the mouse and wheel event handlers that sets the focus widget based on the widget's (or its ancestors) focus policy
Diffstat (limited to 'src/gui/kernel/qapplication_p.h')
-rw-r--r--src/gui/kernel/qapplication_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h
index 7487f0a..6d75f37 100644
--- a/src/gui/kernel/qapplication_p.h
+++ b/src/gui/kernel/qapplication_p.h
@@ -430,6 +430,10 @@ private:
#endif
static QApplicationPrivate *self;
+
+ static void giveFocusAccordingToFocusPolicy(QWidget *w,
+ Qt::FocusPolicy focusPolicy,
+ Qt::FocusReason focusReason);
static bool shouldSetFocus(QWidget *w, Qt::FocusPolicy policy);
};