From 175668f2b34e5aeda61d402ea30393812a008f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 21 Apr 2012 12:03:49 +0200 Subject: [PATCH] Unexport TabGroup property on Client for scripts TabGroup is not (and should not be) a QObject which makes it rather useless in scripting. In order to use window tabs in KWin scripts the methods to interact with tabs from Client should be used. REVIEW: 104685 --- client.h | 2 +- scripting/meta.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client.h b/client.h index 9d9bac365f..7a24c68ffc 100644 --- a/client.h +++ b/client.h @@ -229,7 +229,7 @@ class Client /** * The "Window Tabs" Group this Client belongs to. **/ - Q_PROPERTY(KWin::TabGroup* tabGroup READ tabGroup NOTIFY tabGroupChanged) + Q_PROPERTY(KWin::TabGroup* tabGroup READ tabGroup NOTIFY tabGroupChanged SCRIPTABLE false) /** * Whether this Client is the currently visible Client in its Client Group (Window Tabs). * For change connect to the visibleChanged signal on the Client's Group. diff --git a/scripting/meta.cpp b/scripting/meta.cpp index b72eefa763..92f11ebf2d 100644 --- a/scripting/meta.cpp +++ b/scripting/meta.cpp @@ -20,7 +20,6 @@ along with this program. If not, see . #include "meta.h" #include "client.h" -#include "tabgroup.h" #include