diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-16 08:16:53 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-16 08:16:53 (GMT) |
commit | c5f1f0ba1cb4784b09dd4553df5c6d3f0d3ad938 (patch) | |
tree | a00a67be998d3cf089f0f897c1da41c0bc0f1583 /tools/designer/src/lib | |
parent | 2e0a2abd1fc451b203be5c10cb44fd6e06e66efd (diff) | |
parent | cd56f119d01418b62a847eac8051f8c799ac755b (diff) | |
download | Qt-c5f1f0ba1cb4784b09dd4553df5c6d3f0d3ad938.zip Qt-c5f1f0ba1cb4784b09dd4553df5c6d3f0d3ad938.tar.gz Qt-c5f1f0ba1cb4784b09dd4553df5c6d3f0d3ad938.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
Support "icon form theme" inside property editor
Diffstat (limited to 'tools/designer/src/lib')
-rw-r--r-- | tools/designer/src/lib/shared/iconselector.cpp | 2 | ||||
-rw-r--r-- | tools/designer/src/lib/shared/qdesigner_utils.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/designer/src/lib/shared/iconselector.cpp b/tools/designer/src/lib/shared/iconselector.cpp index 8931b9f..ef20cd2 100644 --- a/tools/designer/src/lib/shared/iconselector.cpp +++ b/tools/designer/src/lib/shared/iconselector.cpp @@ -583,7 +583,6 @@ IconThemeEditor::IconThemeEditor(QWidget *parent, bool wantResetButton) : mainHLayout->setMargin(0); // Vertically center theme preview label - d->m_themeLabel->setFrameStyle(QFrame::Box); d->m_themeLabel->setPixmap(d->m_emptyPixmap); QVBoxLayout *themeLabelVLayout = new QVBoxLayout; @@ -608,6 +607,7 @@ IconThemeEditor::IconThemeEditor(QWidget *parent, bool wantResetButton) : } setLayout(mainHLayout); + setFocusProxy(d->m_themeLineEdit); } IconThemeEditor::~IconThemeEditor() 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 |