diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2011-05-02 11:03:07 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-05 16:21:27 +0200 |
commit | 3a9a367634f6eca0243afa2317a65a48af908ada (patch) | |
tree | 00b6b5f1c741694520dd9f5d34a8eeeafbc16fb6 /src | |
parent | fd61c9b24d27452df3eb478a81d7e7725fe6f5b4 (diff) | |
download | qttools-3a9a367634f6eca0243afa2317a65a48af908ada.tar.gz |
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>
(cherry picked from commit c08151e01cdf466ac659c469c7ebceb46c10c2b2)
Diffstat (limited to 'src')
-rw-r--r-- | src/designer/src/components/tabordereditor/tabordereditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/tabordereditor/tabordereditor.cpp b/src/designer/src/components/tabordereditor/tabordereditor.cpp index e372bdc14..2932adca0 100644 --- a/src/designer/src/components/tabordereditor/tabordereditor.cpp +++ b/src/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); } } |