From d7345a77ce7e359c127a78dd9a82be1946adbf24 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 17 Oct 2023 21:05:02 +0300 Subject: [PATCH] libkwineffects: Expose QuickSceneEffect::{viewForScreen,viewAt} to QML --- src/libkwineffects/kwinquickeffect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libkwineffects/kwinquickeffect.h b/src/libkwineffects/kwinquickeffect.h index 7c70dd43db..8652ad6a7c 100644 --- a/src/libkwineffects/kwinquickeffect.h +++ b/src/libkwineffects/kwinquickeffect.h @@ -95,12 +95,12 @@ public: /** * Returns the scene view on the specified screen */ - QuickSceneView *viewForScreen(EffectScreen *screen) const; + Q_INVOKABLE QuickSceneView *viewForScreen(EffectScreen *screen) const; /** * Returns the view at the specified @a pos in the global screen coordinates. */ - QuickSceneView *viewAt(const QPoint &pos) const; + Q_INVOKABLE QuickSceneView *viewAt(const QPoint &pos) const; /** * Get a view at the given direction from the active view