| 42 | } |
| 43 | |
| 44 | void TextField::updateFromStylesheet() |
| 45 | { |
| 46 | if (auto core = View::core<TextField::Core>()) { |
| 47 | if (stylesheet->count("font")) { |
| 48 | core->font = (Font)stylesheet->at("font"); |
| 49 | } else { |
| 50 | core->font = Font(); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | View::updateFromStylesheet(); |
| 55 | } |
| 56 | } |