Changeset 83837 in webkit
- Timestamp:
- Apr 14, 2011 4:59:33 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83836 r83837 1 2011-04-14 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Disabled form controls don't actually look disabled. 6 https://bugs.webkit.org/show_bug.cgi?id=58490 7 8 Unsetting QStyle::State_Enabled is not enough to get the "disabled" appearance 9 when painting controls. We must also set the QStyleOption's palette's current 10 color group. 11 12 * platform/qt/RenderThemeQt.cpp: 13 (WebCore::RenderThemeQt::initializeCommonQStyleOptions): 14 1 15 2011-04-14 Nancy Piedra <nancy.piedra@nokia.com> 2 16 -
trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp
r83779 r83837 1112 1112 option.state &= ~(QStyle::State_HasFocus | QStyle::State_MouseOver); 1113 1113 1114 if (!isEnabled(o))1115 option.state &= ~QStyle::State_Enabled;1116 1117 1114 if (isReadOnlyControl(o)) 1118 1115 // Readonly is supported on textfields. … … 1125 1122 1126 1123 setPaletteFromPageClientIfExists(option.palette); 1124 1125 if (!isEnabled(o)) { 1126 option.palette.setCurrentColorGroup(QPalette::Disabled); 1127 option.state &= ~QStyle::State_Enabled; 1128 } 1129 1127 1130 RenderStyle* style = o->style(); 1128 1131 if (!style)
Note: See TracChangeset
for help on using the changeset viewer.