aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldebug/qqmlprofilereventreceiver_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-04-28 23:30:02 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-08 15:27:13 +0000
commit2e664366a298b92105e26c5196f8086ed01652c0 (patch)
treee697f649f8acd51d5c52a4771e50313c949db023 /src/qmldebug/qqmlprofilereventreceiver_p.h
parent3bf89916eb2fb6039c61e03eab8f91fe083fda66 (diff)
Add a TU for QQmlProfilerEventReceiver
This allows includemoc'ing, as well as de-inlining the destructor of this polymorphic class. Make the ctor explicit as a drive-by. Task-number: QTBUG-45582 Task-number: QTBUG-102948 Change-Id: I8b3bae7d5ae539d10d4bba119734bde5f20be9fe Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 4ba43434bd1fe643c704d7367aff8b7cedf6af03) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qmldebug/qqmlprofilereventreceiver_p.h')
-rw-r--r--src/qmldebug/qqmlprofilereventreceiver_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmldebug/qqmlprofilereventreceiver_p.h b/src/qmldebug/qqmlprofilereventreceiver_p.h
index c94b8b90f3..b5a76cfe4d 100644
--- a/src/qmldebug/qqmlprofilereventreceiver_p.h
+++ b/src/qmldebug/qqmlprofilereventreceiver_p.h
@@ -62,7 +62,8 @@ class QQmlProfilerEventReceiver : public QObject
{
Q_OBJECT
public:
- QQmlProfilerEventReceiver(QObject *parent = nullptr) : QObject(parent) {}
+ explicit QQmlProfilerEventReceiver(QObject *parent = nullptr) : QObject(parent) {}
+ ~QQmlProfilerEventReceiver() override;
virtual int numLoadedEventTypes() const = 0;
virtual void addEventType(const QQmlProfilerEventType &type) = 0;