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