void UIGraphicsRotatorButton::sltButtonClicked() { /* Toggle state: */ switch (state()) { case UIGraphicsRotatorButtonState_Default: setToggled(true); break; case UIGraphicsRotatorButtonState_Rotated: setToggled(false); break; default: break; } }
void ToggleButton::action(const ActionEvent& actionEvent) { setToggled(!m_toggled); }