diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2011-05-02 09:03:07 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-02 09:03:56 (GMT) |
commit | c08151e01cdf466ac659c469c7ebceb46c10c2b2 (patch) | |
tree | 3c12663b902d67a52ded7189dfedb93fc29dc1f2 /tools/designer/src/components | |
parent | aae6ef391d2ee2fa5b91c834ea65f14fd61e5af6 (diff) | |
download | Qt-c08151e01cdf466ac659c469c7ebceb46c10c2b2.zip Qt-c08151e01cdf466ac659c469c7ebceb46c10c2b2.tar.gz Qt-c08151e01cdf466ac659c469c7ebceb46c10c2b2.tar.bz2 |
skip widget when its focusPolicy is Qt::ClickFocus in TabOrderEditor
TabOrderEditor should allow user to set tab order for widget that focusPolicy contains Qt::TabFocus.
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tools/designer/src/components')
-rw-r--r-- | tools/designer/src/components/tabordereditor/tabordereditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/src/components/tabordereditor/tabordereditor.cpp b/tools/designer/src/components/tabordereditor/tabordereditor.cpp index e372bdc..2932adc 100644 --- a/tools/designer/src/components/tabordereditor/tabordereditor.cpp +++ b/tools/designer/src/components/tabordereditor/tabordereditor.cpp @@ -208,7 +208,7 @@ bool TabOrderEditor::skipWidget(QWidget *w) const if (index != -1) { bool ok = false; Qt::FocusPolicy q = (Qt::FocusPolicy) Utils::valueOf(sheet->property(index), &ok); - return !ok || q == Qt::NoFocus; + return !ok || !(q & Qt::TabFocus); } } |