summaryrefslogtreecommitdiffhomepage
path: root/compat/qt-signal.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-17 20:57:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-17 20:57:58 +0100
commitcc9ef300857255d84efef60868448c6765d3ccff (patch)
tree7cc470b3dc4cc6094a22c8deefcf8af0e0fbda9f /compat/qt-signal.cpp
parentface7439282c844897568e7a17d3094102580d38 (diff)
compat/qt-sig: progress on beating options::value<t> into shape
Diffstat (limited to 'compat/qt-signal.cpp')
-rw-r--r--compat/qt-signal.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/compat/qt-signal.cpp b/compat/qt-signal.cpp
index 08aac663..8c23866b 100644
--- a/compat/qt-signal.cpp
+++ b/compat/qt-signal.cpp
@@ -1,13 +1,7 @@
+#define OTR_GENERATE_SIGNAL3(type) void sig_##type::operator()(const type& x) const { notify(x); }
#include "qt-signal.hpp"
+namespace _qt_sig_impl {
-namespace qt_sig {
+sig_void::sig_void(QObject* parent) : QObject(parent) {}
-nullary::nullary(QObject* parent) : QObject(parent) {}
-nullary::~nullary() = default;
-
-void nullary::operator()() const
-{
- notify();
}
-
-} // ns qt_sig