summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog14
-rw-r--r--Source/WebCore/platform/qt/RenderThemeQStyle.cpp3
2 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3041ffebc..70322eae4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2013-03-19 David Rosca <nowrep@gmail.com>
+
+ [Qt] QStyle: Set State_Enabled by default when painting style widgets.
+ https://bugs.webkit.org/show_bug.cgi?id=112688
+
+ Reviewed by Jocelyn Turcotte.
+
+ All Qt style widgets were painted with a disabled state, even when
+ they actually were enabled.
+ This change fixes it by setting State_Enabled as a default state,
+ which is then correctly removed when element is disabled.
+
+ * Source/WebCore/platform/qt/RenderThemeQStyle.cpp:
+
2012-12-13 Jerome Pasion <Jerome.Pasion@digia.com>
[Qt] Fix missing doc dependency to examples
diff --git a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
index f7e8bf5c9..e55c75c6e 100644
--- a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
+++ b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
@@ -538,8 +538,9 @@ bool RenderThemeQStyle::paintInnerSpinButton(RenderObject* o, const PaintInfo& p
ControlPart RenderThemeQStyle::initializeCommonQStyleOptions(QStyleFacadeOption &option, RenderObject* o) const
{
- // Default bits: no focus, no mouse over
+ // Default bits: no focus, no mouse over, enabled
option.state &= ~(QStyleFacade::State_HasFocus | QStyleFacade::State_MouseOver);
+ option.state |= QStyleFacade::State_Enabled;
if (isReadOnlyControl(o))
// Readonly is supported on textfields.