13 static bool Child(
const MythUIType *container,
const QString &child_name);
14 static bool Container(
const QString &child_name);
19 static bool Child(
const MythUIType *container,
const QString &child_name);
20 static bool Container(
const QString &child_name);
23 template <
typename ErrorDispatch = ETPr
intWarning>
26 template <
typename ContainerType,
typename UIType>
27 static bool Assign(ContainerType *container, UIType *&item,
28 const QString &name,
bool *err =
nullptr)
33 *err |= ErrorDispatch::Container(name);
35 ErrorDispatch::Container(name);
39 item =
dynamic_cast<UIType *
>(container->GetChild(name));
45 *err |= ErrorDispatch::Child(container, name);
47 ErrorDispatch::Child(container, name);