File indexing completed on 2025-01-19 04:58:03

0001 /*
0002     SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "newbug.h"
0008 
0009 #include <QMetaProperty>
0010 
0011 namespace Bugzilla
0012 {
0013 NewBug::NewBug(QObject *parent)
0014     : JsonCommand(parent)
0015 {
0016 }
0017 
0018 NewBug::NewBug(const NewBug &other)
0019     : JsonCommand(other.parent())
0020 {
0021     const auto propertyCount = staticMetaObject.propertyCount();
0022     for (int i = 0; i < propertyCount; ++i) {
0023         const auto property = staticMetaObject.property(i);
0024         property.write(this, property.read(&other));
0025     }
0026 }
0027 
0028 } // namespace Bugzilla
0029 
0030 #include "moc_newbug.cpp"