summaryrefslogtreecommitdiffstats
path: root/src/testlib/qbenchmarkevent_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qbenchmarkevent_p.h')
-rw-r--r--src/testlib/qbenchmarkevent_p.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testlib/qbenchmarkevent_p.h b/src/testlib/qbenchmarkevent_p.h
index c4d98bf8a1..938ce13f3c 100644
--- a/src/testlib/qbenchmarkevent_p.h
+++ b/src/testlib/qbenchmarkevent_p.h
@@ -56,12 +56,14 @@
#include <QtTest/private/qbenchmarkmeasurement_p.h>
#include <QAbstractEventDispatcher>
#include <QObject>
+#include <QAbstractNativeEventFilter>
QT_BEGIN_NAMESPACE
-class QBenchmarkEvent : public QBenchmarkMeasurerBase
+class QBenchmarkEvent : public QBenchmarkMeasurerBase, public QAbstractNativeEventFilter
{
public:
+ QBenchmarkEvent();
~QBenchmarkEvent();
void start();
qint64 checkpoint();
@@ -71,8 +73,8 @@ public:
int adjustMedianCount(int suggestion);
bool repeatCount() { return 1; }
QTest::QBenchmarkMetric metricType();
- static bool eventCountingMechanism(void *message);
- static qint64 eventCounter;
+ virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result);
+ qint64 eventCounter;
};
QT_END_NAMESPACE