* Retrieve a widget by its type. * @param tp Widget type to search for. * @return Returns the first widget of the specified type, or \c nullptr if no widget can be found. */
| 967 | * @return Returns the first widget of the specified type, or \c nullptr if no widget can be found. |
| 968 | */ |
| 969 | NWidgetBase *NWidgetBase::GetWidgetOfType(WidgetType tp) |
| 970 | { |
| 971 | return (this->type == tp) ? this : nullptr; |
| 972 | } |
| 973 | |
| 974 | void NWidgetBase::ApplyAspectRatio() |
| 975 | { |
no outgoing calls
no test coverage detected