diff options
Diffstat (limited to 'sources/shiboken6/tests/libother/othermultiplederived.cpp')
-rw-r--r-- | sources/shiboken6/tests/libother/othermultiplederived.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libother/othermultiplederived.cpp b/sources/shiboken6/tests/libother/othermultiplederived.cpp new file mode 100644 index 000000000..cfbbfb2c2 --- /dev/null +++ b/sources/shiboken6/tests/libother/othermultiplederived.cpp @@ -0,0 +1,24 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#include "othermultiplederived.h" + +VirtualMethods OtherMultipleDerived::returnUselessClass() +{ + return VirtualMethods(); +} + +Base1 *OtherMultipleDerived::createObject(const std::string &objName) +{ + if (objName == "Base1") + return new Base1; + if (objName == "MDerived1") + return new MDerived1; + if (objName == "SonOfMDerived1") + return new SonOfMDerived1; + if (objName == "MDerived3") + return new MDerived3; + if (objName == "OtherMultipleDerived") + return new OtherMultipleDerived; + return nullptr; +} |