| 501 | } |
| 502 | |
| 503 | void NumberSpinBox::setInvalid(const QString& str) { |
| 504 | if (!str.isEmpty()) |
| 505 | SET_WARNING_PALETTE |
| 506 | else |
| 507 | setPalette(qApp->palette()); |
| 508 | setToolTip(str); |
| 509 | } |
| 510 | |
| 511 | void NumberSpinBox::setInvalid(Errors e) { |
| 512 | setInvalid(errorToString(e)); |
no test coverage detected