From e8f8033dc8bdf8c3df7b0d68365d33e62f6dcdeb Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 2 Sep 2019 13:39:53 +0300 Subject: [PATCH] Expose internal id to declarative scripts Summary: A declarative script may need to access internal id in order to create an instance of WindowThumbnailItem. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23671 --- toplevel.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toplevel.h b/toplevel.h index b399f0b845..e156546316 100644 --- a/toplevel.h +++ b/toplevel.h @@ -252,6 +252,11 @@ class KWIN_EXPORT Toplevel */ Q_PROPERTY(bool outline READ isOutline) + /** + * This property holds a UUID to uniquely identify this Toplevel. + */ + Q_PROPERTY(QUuid internalId READ internalId CONSTANT) + public: explicit Toplevel(); virtual xcb_window_t frameId() const;