diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-10-20 09:52:38 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-10-20 09:52:38 (GMT) |
commit | 63b574ee1539b34ac7df890a7941320deb1c258e (patch) | |
tree | 4f0ed9bf2f9ceb93b6424eaf2a6ba431241f5782 /src/gui/kernel | |
parent | c1a661638f8ad20f0db34d2589cebfa95cdbcdc1 (diff) | |
download | Qt-63b574ee1539b34ac7df890a7941320deb1c258e.zip Qt-63b574ee1539b34ac7df890a7941320deb1c258e.tar.gz Qt-63b574ee1539b34ac7df890a7941320deb1c258e.tar.bz2 |
Fix bug in embedded dialog demo with tab focus.
On embedded dialog pressing tab stop changing the focus when the focus
was given to QFontComboBox. It's because QFontComboBox embed a
QLineEdit in order to allow editing. But this QLineEdit is a focus proxy
so we need to special case that. The logic is the same in QApplication.
Be careful when changing one of them.
Task-number:QTBUG-4818
Reviewed-by:jan-arve
Reviewed-by:ogoffart
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index f48c551..c4249d9 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -2495,6 +2495,7 @@ void QApplication::setActiveWindow(QWidget* act) /*!internal * Helper function that returns the new focus widget, but does not set the focus reason. * Returns 0 if a new focus widget could not be found. + * Shared with QGraphicsProxyWidgetPrivate::findFocusChild() */ QWidget *QApplicationPrivate::focusNextPrevChild_helper(QWidget *toplevel, bool next) { |