From 3b139f40a074b764696f6d23da08d7732bd0b255 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 31 May 2017 13:13:59 +0200 Subject: libpyside: Use Q_SLOTS instead of slots When mixing Python and C++, Qt needs to be used with 'CONFIG += no_keywords' to suppress the 'slots' macro definition, which clashes with a Python header. Task-number: PYSIDE-526 Change-Id: I4feeae2de21db712b4de6653e243d556623436a1 Reviewed-by: Christian Tismer --- sources/pyside2/libpyside/destroylistener.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/pyside2/libpyside') diff --git a/sources/pyside2/libpyside/destroylistener.h b/sources/pyside2/libpyside/destroylistener.h index c4aa55494..c4dd28aec 100644 --- a/sources/pyside2/libpyside/destroylistener.h +++ b/sources/pyside2/libpyside/destroylistener.h @@ -56,7 +56,7 @@ class PYSIDE_API DestroyListener : public QObject static void destroy(); void listen(QObject* obj); - public slots: + public Q_SLOTS: void onObjectDestroyed(QObject* obj); private: -- cgit v1.2.3