From 357c27e6515952a7351cd23e46fd4b943e12999a Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 21 Sep 2017 16:24:44 +0200 Subject: [PATCH] Project: Make subscribeSignal handle signals with Parameters Change-Id: Ic685da344f7bdf201daf9156ce48c87ced04e023 Reviewed-by: Tim Jenssen --- src/plugins/projectexplorer/project.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h index aac69ab22c8..9329fc3c437 100644 --- a/src/plugins/projectexplorer/project.h +++ b/src/plugins/projectexplorer/project.h @@ -169,8 +169,8 @@ public: bool isParsing() const; bool hasParsingData() const; - template - void subscribeSignal(void (S::*sig)(), R*recv, T (R::*sl)()) { + template + void subscribeSignal(void (S::*sig)(Args1...), R*recv, T (R::*sl)(Args2...)) { new Internal::ProjectSubscription([sig, recv, sl, this](ProjectConfiguration *pc) { if (S* sender = qobject_cast(pc)) return connect(sender, sig, recv, sl); @@ -178,8 +178,8 @@ public: }, recv, this); } - template - void subscribeSignal(void (S::*sig)(), R*recv, T sl) { + template + void subscribeSignal(void (S::*sig)(Args1...), R*recv, T sl) { new Internal::ProjectSubscription([sig, recv, sl, this](ProjectConfiguration *pc) { if (S* sender = qobject_cast(pc)) return connect(sender, sig, recv, sl);