diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2010-09-16 08:11:29 (GMT) |
---|---|---|
committer | Jarek Kobus <jkobus@trolltech.com> | 2010-09-16 08:13:42 (GMT) |
commit | cd56f119d01418b62a847eac8051f8c799ac755b (patch) | |
tree | a00a67be998d3cf089f0f897c1da41c0bc0f1583 /tools/designer/src/lib/shared/qdesigner_utils.cpp | |
parent | 2e0a2abd1fc451b203be5c10cb44fd6e06e66efd (diff) | |
download | Qt-cd56f119d01418b62a847eac8051f8c799ac755b.zip Qt-cd56f119d01418b62a847eac8051f8c799ac755b.tar.gz Qt-cd56f119d01418b62a847eac8051f8c799ac755b.tar.bz2 |
Support "icon form theme" inside property editor
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Task-number: QT_BUG-7777
Diffstat (limited to 'tools/designer/src/lib/shared/qdesigner_utils.cpp')
-rw-r--r-- | tools/designer/src/lib/shared/qdesigner_utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/designer/src/lib/shared/qdesigner_utils.cpp b/tools/designer/src/lib/shared/qdesigner_utils.cpp index 03d7cfa..bd89c53 100644 --- a/tools/designer/src/lib/shared/qdesigner_utils.cpp +++ b/tools/designer/src/lib/shared/qdesigner_utils.cpp @@ -640,8 +640,8 @@ namespace qdesigner_internal static inline QPair<QIcon::Mode, QIcon::State> subPropertyFlagToIconModeState(unsigned flag) { switch (flag) { - case NormalOffIconMask: - return qMakePair(QIcon::Normal, QIcon::Off); + case NormalOnIconMask: + return qMakePair(QIcon::Normal, QIcon::On); case DisabledOffIconMask: return qMakePair(QIcon::Disabled, QIcon::Off); case DisabledOnIconMask: @@ -654,11 +654,11 @@ namespace qdesigner_internal return qMakePair(QIcon::Selected, QIcon::Off); case SelectedOnIconMask: return qMakePair(QIcon::Selected, QIcon::On); - case NormalOnIconMask: + case NormalOffIconMask: default: break; } - return qMakePair(QIcon::Normal, QIcon::On); + return qMakePair(QIcon::Normal, QIcon::Off); } uint PropertySheetIconValue::mask() const |