diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-04-28 23:30:02 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-04-29 20:37:53 +0200 |
commit | 4ba43434bd1fe643c704d7367aff8b7cedf6af03 (patch) | |
tree | ed63523eb06fc1804c834f284e516c834b2e1b88 /src/qmldebug | |
parent | 4c61d3e795098108efb89ab6693fb1eca9cf2a52 (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
Pick-to: 6.3 6.2 5.15
Change-Id: I8b3bae7d5ae539d10d4bba119734bde5f20be9fe
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qmldebug')
-rw-r--r-- | src/qmldebug/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/qmldebug/qqmlprofilereventreceiver.cpp | 49 | ||||
-rw-r--r-- | src/qmldebug/qqmlprofilereventreceiver_p.h | 3 |
3 files changed, 52 insertions, 2 deletions
diff --git a/src/qmldebug/CMakeLists.txt b/src/qmldebug/CMakeLists.txt index 090585497c..fe8f7febce 100644 --- a/src/qmldebug/CMakeLists.txt +++ b/src/qmldebug/CMakeLists.txt @@ -26,7 +26,7 @@ qt_internal_add_module(QmlDebugPrivate qqmlprofilerclientdefinitions_p.h qqmlprofilerevent.cpp qqmlprofilerevent_p.h qqmlprofilereventlocation.cpp qqmlprofilereventlocation_p.h - qqmlprofilereventreceiver_p.h + qqmlprofilereventreceiver.cpp qqmlprofilereventreceiver_p.h qqmlprofilereventtype.cpp qqmlprofilereventtype_p.h qqmlprofilertypedevent.cpp qqmlprofilertypedevent_p.h qv4debugclient.cpp qv4debugclient_p.h diff --git a/src/qmldebug/qqmlprofilereventreceiver.cpp b/src/qmldebug/qqmlprofilereventreceiver.cpp new file mode 100644 index 0000000000..cb88f821f8 --- /dev/null +++ b/src/qmldebug/qqmlprofilereventreceiver.cpp @@ -0,0 +1,49 @@ +/**************************************************************************** +** +** Copyright (C) 2017 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the QtQml module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "qqmlprofilereventreceiver_p.h" + +QT_BEGIN_NAMESPACE + +QQmlProfilerEventReceiver::~QQmlProfilerEventReceiver() + = default; + +QT_END_NAMESPACE + +#include "moc_qqmlprofilereventreceiver_p.cpp" diff --git a/src/qmldebug/qqmlprofilereventreceiver_p.h b/src/qmldebug/qqmlprofilereventreceiver_p.h index defe64a42e..45d9abf71d 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; |