| 442 | } |
| 443 | |
| 444 | bool TextBoxWidget::newTextValid(String const& text) const { |
| 445 | if (!text.regexMatch(m_regex)) |
| 446 | return false; |
| 447 | if ((m_maxWidth != -1) && !m_overfillMode) { |
| 448 | context()->setTextStyle(m_textStyle); |
| 449 | return context()->stringInterfaceWidth(text) <= m_maxWidth; |
| 450 | } |
| 451 | return true; |
| 452 | } |
| 453 | |
| 454 | } |
nothing calls this directly
no test coverage detected