| 279 | } |
| 280 | |
| 281 | template <typename T> bool TextBox<T>::update_data() { |
| 282 | std::optional<T> dataToAssign = userInfo.fromStr(textbox->get_string()); |
| 283 | if(dataToAssign.has_value()) { |
| 284 | *userInfo.data = dataToAssign.value(); |
| 285 | oldData = dataToAssign; |
| 286 | return true; |
| 287 | } |
| 288 | return false; |
| 289 | } |
| 290 | |
| 291 | template <typename T> TextBox<T>::~TextBox() { |
| 292 | if(is_selected()) |
nothing calls this directly
no test coverage detected