[network/ruqola] src/widgets/dialogs: Clean up

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ff08f4be63eaff8f72b4b621f2c3f2ae5b326c82 by Laurent Montel.
Committed on 21/07/2026 at 06:54.
Pushed by mlaurent into branch 'master'.

Clean up

M  +1    -12   src/widgets/dialogs/directchannelinfowidget.cpp
M  +0    -3    src/widgets/dialogs/directchannelinfowidget.h

https://invent.kde.org/network/ruqola/-/commit/ff08f4be63eaff8f72b4b621f2c3f2ae5b326c82

diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index b48c78cada..91616017d4 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -41,8 +41,6 @@ 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;
@@ -238,20 +236,11 @@ DirectChannelActionWidget::DirectChannelActionWidget(RocketChatAccount *account,
     actionLayout->setContentsMargins({});
     actionLayout->setSpacing(0);
 
-    auto ignoreButton = new QPushButton(i18nc("@action:button", "Ignore"), this);
-    ignoreButton->setObjectName(u"ignoreButton"_s);
-    actionLayout->addWidget(ignoreButton);
-    connect(ignoreButton, &QPushButton::clicked, this, &DirectChannelActionWidget::ignoreUser);
-
-    auto reportButton = new QPushButton(i18nc("@action:button", "Report"), this);
-    reportButton->setObjectName(u"reportButton"_s);
-    actionLayout->addWidget(reportButton);
-    connect(reportButton, &QPushButton::clicked, this, &DirectChannelActionWidget::reportUser);
-
     mToolButton->setObjectName(u"mToolButton"_s);
     mToolButton->setIcon(QIcon::fromTheme(u"preferences-other"_s));
     mToolButton->setPopupMode(QToolButton::InstantPopup);
     actionLayout->addWidget(mToolButton);
+    actionLayout->addStretch(1);
 }
 
 DirectChannelActionWidget::~DirectChannelActionWidget() = default;
diff --git a/src/widgets/dialogs/directchannelinfowidget.h b/src/widgets/dialogs/directchannelinfowidget.h
index d37e40c1bf..e7da15399a 100644
--- a/src/widgets/dialogs/directchannelinfowidget.h
+++ b/src/widgets/dialogs/directchannelinfowidget.h
@@ -24,9 +24,6 @@ public:
     ~DirectChannelActionWidget() override;
     void generateRoomMenu(const User &user);
     void setRoom(Room *room);
-Q_SIGNALS:
-    void ignoreUser();
-    void reportUser();
 
 private:
     QToolButton *const mToolButton;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.