summaryrefslogtreecommitdiffhomepage
path: root/compat/qt-signal.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-03 10:17:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-03 10:17:58 +0100
commitf7481e685dc45c9eff0245249a8a83da79d6808c (patch)
tree2f544b83f35bc72f10ae2385a091e860b99c19d5 /compat/qt-signal.cpp
parent5e73075e75e593cefecfd8ac4d370942303728e9 (diff)
opentrack: get rid of Q_OBJECT
More work toward mixins.
Diffstat (limited to 'compat/qt-signal.cpp')
-rw-r--r--compat/qt-signal.cpp13
1 files changed, 13 insertions, 0 deletions
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