Project

General

Profile

Actions

Bug #423

closed

WCheckBox, WRadioButton: fix enabling/disabling

Added by Koen Deforche over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
06/28/2010
Due date:
% Done:

0%

Estimated time:

Description

From Thomas Kurz:

has anybody yet realized that since the recent (March 2010)

changes in WAbstractToggleButton::updateDomElements()

WCheckbox and WRadioButton elements can no longer be

disabled or set to readonly?

Only their label element will show up as disabled, because

"PropertyDisabled" and "PropertyReadOnly" are being cleared

on the input element itself after copying them to the

exterior element, which usually doesn't react on "disabled":

/*

  • Copy all properties to the exterior element, as they relate to

    style,

  • etc... We ignore here attributes, see WWebWidget: there seems not to

  • be attributes that sensibly need to be moved.

    */

    if (&element != &input) {

    element.setProperties(input.properties());

    input.clearProperties();

    }

If I remove the line containing the call to "clearProperties()"

it again works for me as expected.

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to Resolved

You are entirely right. These properties need to be set on the form element itself.

Actions #2

Updated by Pieter Libin over 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF