File indexing completed on 2024-04-28 09:21:03
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 #include "qobjectlistmodel.h" 0007 0008 #include "bugzillaintegration/libbugzilla/models/comment.h" 0009 0010 class CommentsModel : public QObjectListModel 0011 { 0012 public: 0013 using QObjectListModel::QObjectListModel; 0014 0015 [[nodiscard]] int rowCount(const QModelIndex &parent) const override; 0016 0017 private: 0018 QList<Bugzilla::Comment::Ptr> m_list; 0019 };