doc: Fix rendering of slint::interpreter::ComponentInstance::set_global_callback

Don't use a preview for the Slint snippet that just shows a global. There's
nothing to render.
This commit is contained in:
Simon Hausmann 2022-11-02 09:51:12 +01:00
parent fa8959c7bc
commit 41e3e27bff

View file

@ -725,7 +725,7 @@ public:
/// Like `set_callback()` but on a callback in the specified exported global singleton.
///
/// Example: imagine the .slint file contains the given global:
/// ```slint
/// ```slint,no-preview
/// export global Logic := {
/// callback to_uppercase(string) -> string;
/// }