mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-03 15:55:27 +08:00
qt 6.5.1 original
This commit is contained in:
13
tests/auto/cmake/mockplugins/mock3plugin/CMakeLists.txt
Normal file
13
tests/auto/cmake/mockplugins/mock3plugin/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
qt_internal_add_plugin(QMock3Plugin
|
||||
NO_UNITY_BUILD
|
||||
CLASS_NAME QMock3Plugin
|
||||
PLUGIN_TYPE mockplugin
|
||||
SOURCES
|
||||
qmock3plugin.cpp qmock3plugin.h
|
||||
LIBRARIES
|
||||
Qt::Core
|
||||
Qt::MockPlugins1
|
||||
)
|
@ -0,0 +1 @@
|
||||
{}
|
10
tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp
Normal file
10
tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include "qmock3plugin.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QString QMock3Plugin::pluginName() const
|
||||
{
|
||||
return "QMock3Plugin";
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
23
tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.h
Normal file
23
tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.h
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2018 Kitware, Inc.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef QMOCK3PLUGIN_H
|
||||
#define QMOCK3PLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QtMockPlugins1/QMockPlugin>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QMock3Plugin : public QObject, public QMockPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID QMockPlugin_iid FILE "mock3plugin.json")
|
||||
Q_INTERFACES(QMockPlugin)
|
||||
public:
|
||||
QString pluginName() const override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QMOCK3PLUGIN_H
|
Reference in New Issue
Block a user