equal
deleted
inserted
replaced
39 ** |
39 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 |
41 |
42 #include "QtTest/private/qbenchmarkevent_p.h" |
42 #include "QtTest/private/qbenchmarkevent_p.h" |
43 #include "QtTest/private/qbenchmark_p.h" |
43 #include "QtTest/private/qbenchmark_p.h" |
|
44 #include "QtTest/private/qbenchmarkmetric_p.h" |
44 #include <qdebug.h> |
45 #include <qdebug.h> |
45 |
46 |
46 QT_BEGIN_NAMESPACE |
47 QT_BEGIN_NAMESPACE |
47 |
48 |
48 QAbstractEventDispatcher::EventFilter oldEventFilter = 0; |
49 QAbstractEventDispatcher::EventFilter oldEventFilter = 0; |
89 { |
90 { |
90 Q_UNUSED(suggestion); |
91 Q_UNUSED(suggestion); |
91 return 1; |
92 return 1; |
92 } |
93 } |
93 |
94 |
94 QString QBenchmarkEvent::unitText() |
95 QTest::QBenchmarkMetric QBenchmarkEvent::metricType() |
95 { |
96 { |
96 return QLatin1String("events"); |
97 return QTest::Events; |
97 } |
|
98 |
|
99 QString QBenchmarkEvent::metricText() |
|
100 { |
|
101 return QLatin1String("events"); |
|
102 } |
98 } |
103 |
99 |
104 // This could be done in a much better way, this is just the beginning. |
100 // This could be done in a much better way, this is just the beginning. |
105 bool QBenchmarkEvent::eventCountingMechanism(void *message) |
101 bool QBenchmarkEvent::eventCountingMechanism(void *message) |
106 { |
102 { |