[network/ruqola] src/widgets/dialogs: Prepare to update menu

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

Prepare to update menu

M  +4    -0    src/widgets/dialogs/directchannelinfowidget.cpp

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

diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index 89286196da..6e40206173 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -16,6 +16,7 @@
 #include <KLocalizedString>
 #include <QFormLayout>
 #include <QLabel>
+#include <QMenu>
 #include <QPushButton>
 #include <QToolButton>
 
@@ -269,6 +270,9 @@ void DirectChannelActionWidget::generateRoomMenu(const User &user)
     menu->setUserName(user.userName());
     menu->setRoom(mRoom);
     mToolButton->setMenu(menu->createMenu());
+    connect(mToolButton->menu(), &QMenu::aboutToShow, this, [menu]() {
+        // TODO
+    });
 }
 
 #include "moc_directchannelinfowidget.cpp"
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.