summaryrefslogtreecommitdiffstats
path: root/logic/resources/ResourceObserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/resources/ResourceObserver.h')
-rw-r--r--logic/resources/ResourceObserver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/resources/ResourceObserver.h b/logic/resources/ResourceObserver.h
index 27430d42..ef946c32 100644
--- a/logic/resources/ResourceObserver.h
+++ b/logic/resources/ResourceObserver.h
@@ -51,6 +51,11 @@ private:
QMetaProperty m_property;
};
+/** Observer for functions, lambdas etc.
+ * Template arguments:
+ * * We need Ret and Arg in order to create the std::function
+ * * We need Func in order to std::forward the function
+ */
template <typename Ret, typename Arg, typename Func>
class FunctionResourceObserver : public ResourceObserver
{