File indexing completed on 2024-12-01 04:37:05

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "teamsearchroomwidget.h"
0008 #include "teamsearchroomforteamwidget.h"
0009 #include <QVBoxLayout>
0010 
0011 TeamSearchRoomWidget::TeamSearchRoomWidget(RocketChatAccount *account, QWidget *parent)
0012     : QWidget(parent)
0013     , mTeamSearchRoomForTeamWidget(new TeamSearchRoomForTeamWidget(account, this))
0014 {
0015     auto vboxLayout = new QVBoxLayout(this);
0016     vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
0017     vboxLayout->setContentsMargins({});
0018 
0019     mTeamSearchRoomForTeamWidget->setObjectName(QStringLiteral("mTeamSearchRoomForTeamWidget"));
0020     vboxLayout->addWidget(mTeamSearchRoomForTeamWidget);
0021 }
0022 
0023 TeamSearchRoomWidget::~TeamSearchRoomWidget() = default;
0024 
0025 QStringList TeamSearchRoomWidget::roomIds() const
0026 {
0027     return mTeamSearchRoomForTeamWidget->roomIds();
0028 }
0029 
0030 #include "moc_teamsearchroomwidget.cpp"