[network/ruqola] src/widgets/dialogs: Connect signal/slot
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 15ef3d53d3aca4f6c83759945f4c86ce221c4b97 by Laurent Montel.
Committed on 18/07/2026 at 20:43.
Pushed by mlaurent into branch 'master'.
Connect signal/slot
M +12 -0 src/widgets/dialogs/directchannelinfowidget.cpp
M +2 -0 src/widgets/dialogs/directchannelinfowidget.h
https://invent.kde.org/network/ruqola/-/commit/15ef3d53d3aca4f6c83759945f4c86ce221c4b97
diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index 0757f64077..04d0702bcd 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -38,10 +38,22 @@ DirectChannelInfoWidget::DirectChannelInfoWidget(RocketChatAccount *account, QWi
mDirectChannelActionWidget->setObjectName(u"mDirectChannelActionWidget"_s);
mainLayout->addWidget(mDirectChannelActionWidget);
+ connect(mDirectChannelActionWidget, &DirectChannelActionWidget::ignoreUser, this, &DirectChannelInfoWidget::slotIgnoreUser);
+ connect(mDirectChannelActionWidget, &DirectChannelActionWidget::reportUser, this, &DirectChannelInfoWidget::slotReportUser);
}
DirectChannelInfoWidget::~DirectChannelInfoWidget() = default;
+void DirectChannelInfoWidget::slotIgnoreUser()
+{
+ // TODO
+}
+
+void DirectChannelInfoWidget::slotReportUser()
+{
+ // TODO
+}
+
void DirectChannelInfoWidget::setUserName(const QString &userName)
{
fetchUserInfo(userName);
diff --git a/src/widgets/dialogs/directchannelinfowidget.h b/src/widgets/dialogs/directchannelinfowidget.h
index f1ac3ca59b..7ce277f9b1 100644
--- a/src/widgets/dialogs/directchannelinfowidget.h
+++ b/src/widgets/dialogs/directchannelinfowidget.h
@@ -39,6 +39,8 @@ public:
void setRoles(const QList<RoleInfo> &newRoles);
private:
+ LIBRUQOLAWIDGETS_NO_EXPORT void slotIgnoreUser();
+ LIBRUQOLAWIDGETS_NO_EXPORT void slotReportUser();
LIBRUQOLAWIDGETS_NO_EXPORT void slotUserInfoDone(const QJsonObject &obj);
LIBRUQOLAWIDGETS_NO_EXPORT void fetchUserInfo(const QString &userName);
LIBRUQOLAWIDGETS_NO_EXPORT void setUser(const User &user);