From 4a7083dd2750ddfa11bf93becc177384514f2963 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Fri, 23 May 2014 15:04:06 +0200 Subject: 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 --- src/widgets/widgets/qdialogbuttonbox.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/widgets/widgets/qdialogbuttonbox.cpp') 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() -- cgit v1.2.3