!fixup Try to fix the C++ build

This commit is contained in:
Simon Hausmann 2025-08-19 08:59:12 +02:00 committed by Simon Hausmann
parent 2fab7822c3
commit a6c88b5a3a
2 changed files with 8 additions and 1 deletions

View file

@ -256,6 +256,13 @@ translate_from_bundle_with_plural(std::span<const char8_t *const> strs,
return result;
}
template<typename Component>
inline float get_resolved_default_font_size(const Component &component)
{
ItemTreeRc item_tree_rc = (*component.self_weak.lock()).into_dyn();
return slint::cbindgen_private::slint_windowrc_resolved_default_font_size(&item_tree_rc);
}
} // namespace private_api
#ifdef SLINT_FEATURE_GETTEXT