diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modelinteractivitytest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modelinteractivitytest.cpp b/tests/modelinteractivitytest.cpp index caa9ca2..da643a8 100644 --- a/tests/modelinteractivitytest.cpp +++ b/tests/modelinteractivitytest.cpp | |||
@@ -30,10 +30,11 @@ public: | |||
30 | virtual bool notify(QObject *receiver, QEvent *event) | 30 | virtual bool notify(QObject *receiver, QEvent *event) |
31 | { | 31 | { |
32 | t.start(); | 32 | t.start(); |
33 | auto receiverName = receiver->metaObject()->className(); | ||
33 | const bool ret = QCoreApplication::notify(receiver, event); | 34 | const bool ret = QCoreApplication::notify(receiver, event); |
34 | if (t.elapsed() > 1) { | 35 | if (t.elapsed() > 1) { |
35 | std::cout | 36 | std::cout |
36 | << QString("processing event type %1 for object %2 took %3ms").arg((int)event->type()).arg(receiver->metaObject()->className()).arg((int)t.elapsed()).toStdString() | 37 | << QString("processing event type %1 for object %2 took %3ms").arg((int)event->type()).arg(receiverName).arg((int)t.elapsed()).toStdString() |
37 | << std::endl; | 38 | << std::endl; |
38 | } | 39 | } |
39 | blockingTime += t.elapsed(); | 40 | blockingTime += t.elapsed(); |