Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler handling of click-buttons (as opposed to toggle buttons) #99

Open
cdyk opened this issue Apr 29, 2014 · 0 comments
Open

Simpler handling of click-buttons (as opposed to toggle buttons) #99

cdyk opened this issue Apr 29, 2014 · 0 comments

Comments

@cdyk
Copy link
Contributor

cdyk commented Apr 29, 2014

Buttons are backed by a bool value that are set to true when the button is clicked. However, the application must set it back to false to make it a click-button, i.e. in the listener:

bool value;
stateElement->getValue<bool>( value );
if( value ) {
    // do stuff...
    m_model->updateElement( stateElement->getKey(), false );
}

and this has to be repeated for all click-buttons.

Avoiding this clutter in the job-code would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant