Project

General

Profile

Bug #2092

WWidget::toggleStyleClass() should manage its state

Added by Stefan Ruppert about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/07/2013
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I just wanted to use the WWidget::toggleStyleClass() method, but I wondered why I need the add parameter. I would expected that the toggleStyleClass() was implemented has follows:

void toggleStyleClass(const WString& style)

{

if(hasStyleClass(style))

removeStyleClass(sytle);

else

addStyleClass(style);

}

Why should I manage the state by my own?

Regards,

Stefan

No data to display

Also available in: Atom PDF