diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-09 15:40:41 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-10 20:08:38 +0200 |
commit | 6738fe1ee736835251d8c2fb06bdae54e7087edb (patch) | |
tree | 4ebfcdf32e18815c0354cb3ae3dba7f4b2cf7571 /src/quick/util/qquickforeignutils.cpp | |
parent | e0af2a1645ed2049c6237a4aa68245517fd89ba6 (diff) |
Add TUs for QML_FOREIGNs and namespaces to enable includemocs
There is never any implementation of QML_FOREIGN Q_GADGETs, or
Q_ENUMs, so just compiling their moc-files in mocs_compilation.cpp
would be fine. But at some point we want automoc to throw an error
when mocs_compilation.cpp isn't empty, so add TUs nonetheless.
Task-number: QTBUG-102948
Pick-to: 6.3
Change-Id: Ie4167badc730e09d51429c961915da5990c7b51a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/util/qquickforeignutils.cpp')
-rw-r--r-- | src/quick/util/qquickforeignutils.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/quick/util/qquickforeignutils.cpp b/src/quick/util/qquickforeignutils.cpp new file mode 100644 index 0000000000..824a2c293e --- /dev/null +++ b/src/quick/util/qquickforeignutils.cpp @@ -0,0 +1,46 @@ +/**************************************************************************** +** +** Copyright (C) 2022 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the QtQuick 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 "qquickforeignutils_p.h" + +QT_BEGIN_NAMESPACE + +QT_END_NAMESPACE + +#include "moc_qquickforeignutils_p.cpp" |