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
This commit is contained in:
Vlad Zagorodniy 2019-09-02 13:39:53 +03:00
parent 4e9ee32895
commit e8f8033dc8

View file

@ -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;