File indexing completed on 2024-05-12 16:59: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 "comment.h" 0008 0009 #include <QVariantHash> 0010 0011 namespace Bugzilla 0012 { 0013 Comment::Comment(const QVariantHash &object, QObject *parent) 0014 : QObject(parent) 0015 { 0016 for (auto it = object.constBegin(); it != object.constEnd(); ++it) { 0017 setProperty(qPrintable(it.key()), it.value()); 0018 } 0019 } 0020 0021 int Comment::bug_id() const 0022 { 0023 return m_bug_id; 0024 } 0025 0026 QString Comment::text() const 0027 { 0028 return m_text; 0029 } 0030 0031 } // namespace Bugzilla