File indexing completed on 2023-12-10 04:54:44
0001 /** 0002 * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "objectfactory.h" 0008 0009 QObject *ObjectFactory::create() 0010 { 0011 if (m_f0) 0012 return m_f0(); 0013 return nullptr; 0014 } 0015 0016 QObject *ObjectFactory::create(const QVariant &arg1) 0017 { 0018 if (m_f1) 0019 return m_f1(arg1); 0020 return nullptr; 0021 } 0022 0023 QObject *ObjectFactory::create(const QVariant &arg1, const QVariant &arg2) 0024 { 0025 if (m_f2) 0026 return m_f2(arg1, arg2); 0027 return nullptr; 0028 } 0029 0030 #include "moc_objectfactory.cpp"