diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt index a3e5a6c713b..3babfad76bc 100644 --- a/src/widgets/CMakeLists.txt +++ b/src/widgets/CMakeLists.txt @@ -838,7 +838,11 @@ qt_internal_extend_target(Widgets CONDITION NOT QT_FEATURE_xcb ) -qt_internal_create_tracepoints(Widgets qtwidgets.tracepoints) +qt_internal_generate_tracepoints(Widgets widgets + SOURCES + kernel/qapplication.cpp +) + qt_internal_add_docs(Widgets doc/qtwidgets.qdocconf ) diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index fd71cdb0aa1..0317884b24c 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -100,6 +100,10 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; +Q_TRACE_METADATA(qtwidgets, "ENUM { AUTO, RANGE User ... MaxUser } QEvent::Type;"); +Q_TRACE_POINT(qtwidgets, QApplication_notify_entry, QObject *receiver, QEvent *event, QEvent::Type type); +Q_TRACE_POINT(qtwidgets, QApplication_notify_exit, bool consumed, bool filtered); + // Helper macro for static functions to check on the existence of the application class. #define CHECK_QAPP_INSTANCE(...) \ if (Q_LIKELY(QCoreApplication::instance())) { \