summaryrefslogtreecommitdiff
path: root/test/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/signal.cpp')
-rw-r--r--test/signal.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/signal.cpp b/test/signal.cpp
index 9d8f985d..0054ed5a 100644
--- a/test/signal.cpp
+++ b/test/signal.cpp
@@ -23,6 +23,11 @@ static void slotStatic(int value)
valueStatic_ = value;
}
+static int slotStaticReturn()
+{
+ return 0;
+}
+
class SlotObject : public Object
{
public:
@@ -85,6 +90,11 @@ protected:
name_ = name;
}
+ int slotReturn()
+ {
+ return 0;
+ }
+
int init()
{
return 0;
@@ -174,6 +184,13 @@ protected:
return TestFail;
}
+ /*
+ * Test connecting to slots that return a value. This targets
+ * compilation, there's no need to check runtime results.
+ */
+ signalVoid_.connect(slotStaticReturn);
+ signalVoid_.connect(this, &SignalTest::slotReturn);
+
/* ----------------- Signal -> Object tests ----------------- */
/*