diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-08 11:51:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-08 11:51:24 +0200 |
commit | ac67eb1a3baa93cfd494ee5461b1b9bb9b304aa8 (patch) | |
tree | b9c99921656b8a86bcb2ddac4fbac8148fa208e0 /tests/modelinteractivitytest.cpp | |
parent | 81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21 (diff) | |
download | sink-ac67eb1a3baa93cfd494ee5461b1b9bb9b304aa8.tar.gz sink-ac67eb1a3baa93cfd494ee5461b1b9bb9b304aa8.zip |
Print where the notification is coming from.
Diffstat (limited to 'tests/modelinteractivitytest.cpp')
-rw-r--r-- | tests/modelinteractivitytest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/modelinteractivitytest.cpp b/tests/modelinteractivitytest.cpp index 4819ccc..1ac0e2d 100644 --- a/tests/modelinteractivitytest.cpp +++ b/tests/modelinteractivitytest.cpp | |||
@@ -30,10 +30,11 @@ public: | |||
30 | { | 30 | { |
31 | t.start(); | 31 | t.start(); |
32 | const bool ret = QCoreApplication::notify(receiver, event); | 32 | const bool ret = QCoreApplication::notify(receiver, event); |
33 | if (t.elapsed() > 1) | 33 | if (t.elapsed() > 1) { |
34 | std::cout | 34 | std::cout |
35 | << QString("processing event type %1 for object %2 took %3ms").arg((int)event->type()).arg("" /* receiver->objectName().toLocal8Bit().data()*/).arg((int)t.elapsed()).toStdString() | 35 | << QString("processing event type %1 for object %2 took %3ms").arg((int)event->type()).arg(receiver->metaObject()->className()).arg((int)t.elapsed()).toStdString() |
36 | << std::endl; | 36 | << std::endl; |
37 | } | ||
37 | blockingTime += t.elapsed(); | 38 | blockingTime += t.elapsed(); |
38 | return ret; | 39 | return ret; |
39 | } | 40 | } |