summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-05-23 15:04:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-31 14:48:39 +0200
commit4a7083dd2750ddfa11bf93becc177384514f2963 (patch)
treed63a4154ec3de5a2f645b2d387cc42c627c93672 /src
parent42f9a61608fe662e797dc6541f4e82c19b878d56 (diff)
QDialogButtonBox does not need TabFocus
It will now share the same behavior as QGroupBox, which has NoFocus if its not checkable. This doesn't lure AT clients to stop and read its content (this is the case for android accessibility) (designer seems to generate a tooltip for each QDialogButtonBox, which will be read as the name). Change-Id: I6cfacdd9c01299521222c773634df1e36971d982 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qdialogbuttonbox.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/widgets/widgets/qdialogbuttonbox.cpp b/src/widgets/widgets/qdialogbuttonbox.cpp
index 3acd4f0701..86fc6fff5d 100644
--- a/src/widgets/widgets/qdialogbuttonbox.cpp
+++ b/src/widgets/widgets/qdialogbuttonbox.cpp
@@ -211,9 +211,6 @@ void QDialogButtonBoxPrivate::initLayout()
q->setSizePolicy(sp);
q->setAttribute(Qt::WA_WState_OwnSizePolicy, false);
}
-
- // ### move to a real init() function
- q->setFocusPolicy(Qt::TabFocus);
}
void QDialogButtonBoxPrivate::resetLayout()