From f7481e685dc45c9eff0245249a8a83da79d6808c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Feb 2019 10:17:58 +0100 Subject: opentrack: get rid of Q_OBJECT More work toward mixins. --- compat/qt-signal.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compat/qt-signal.cpp (limited to 'compat/qt-signal.cpp') diff --git a/compat/qt-signal.cpp b/compat/qt-signal.cpp new file mode 100644 index 00000000..08aac663 --- /dev/null +++ b/compat/qt-signal.cpp @@ -0,0 +1,13 @@ +#include "qt-signal.hpp" + +namespace qt_sig { + +nullary::nullary(QObject* parent) : QObject(parent) {} +nullary::~nullary() = default; + +void nullary::operator()() const +{ + notify(); +} + +} // ns qt_sig -- cgit v1.2.3