| 81 | } |
| 82 | |
| 83 | void SwitchButton::SetStatus(bool enabled) { |
| 84 | selected = enabled; |
| 85 | if (thumb_point_ != 0) { |
| 86 | ExecAnimation(selected); |
| 87 | } |
| 88 | if (left_point_ == 0 && right_point_ == 0) { |
| 89 | need_repair_ = true; |
| 90 | } |
| 91 | qDebug() << "left : " << left_point_ << " right : " << right_point_; |
| 92 | } |
| 93 | |
| 94 | void SwitchButton::ExecAnimation(bool selected) { |
| 95 | if (selected) { |
no outgoing calls
no test coverage detected