File indexing completed on 2024-12-22 04:45:36
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "moderationmessageinfowidget.h" 0008 #include "moderationreportinfowidget.h" 0009 0010 #include <KLocalizedString> 0011 #include <QVBoxLayout> 0012 0013 ModerationMessageInfoWidget::ModerationMessageInfoWidget(RocketChatAccount *account, QWidget *parent) 0014 : QWidget{parent} 0015 , mModerationReportInfoWidget(new ModerationReportInfoWidget(account, this)) 0016 { 0017 auto mainLayout = new QVBoxLayout(this); 0018 mainLayout->setContentsMargins({}); 0019 mainLayout->setObjectName(QStringLiteral("mainLayout")); 0020 0021 mModerationReportInfoWidget->setObjectName(QStringLiteral("mModerationReportInfoWidget")); 0022 mainLayout->addWidget(mModerationReportInfoWidget); 0023 } 0024 0025 ModerationMessageInfoWidget::~ModerationMessageInfoWidget() = default; 0026 0027 void ModerationMessageInfoWidget::setReportInfos(const ModerationReportInfos &infos) 0028 { 0029 mModerationReportInfoWidget->setReportInfos(infos); 0030 } 0031 0032 #include "moc_moderationmessageinfowidget.cpp"