[network/ruqola] src/widgets/dialogs: Prepare to add actions

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

Prepare to add actions

M  +16   -0    src/widgets/dialogs/directchannelinfowidget.cpp
M  +10   -0    src/widgets/dialogs/directchannelinfowidget.h

https://invent.kde.org/network/ruqola/-/commit/7ae966264cb89327b387668e2adab3b7b13f2732

diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index 0f87e9cee6..ef4a7aba0a 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -15,11 +15,14 @@
 #include <KLocalizedString>
 #include <QFormLayout>
 #include <QLabel>
+#include <QPushButton>
+
 using namespace Qt::Literals::StringLiterals;
 DirectChannelInfoWidget::DirectChannelInfoWidget(RocketChatAccount *account, QWidget *parent)
     : QWidget(parent)
     , mAvatar(new ResizablePixmapLabel(this))
     , mFormLayout(new QFormLayout)
+    , mDirectChannelActionWidget(new DirectChannelActionWidget(this))
     , mRocketChatAccount(account)
 {
     mFormLayout->setObjectName(u"mFormLayout"_s);
@@ -32,6 +35,9 @@ DirectChannelInfoWidget::DirectChannelInfoWidget(RocketChatAccount *account, QWi
     mAvatar->setObjectName(u"mAvatar"_s);
     mainLayout->addWidget(mAvatar);
     mainLayout->addLayout(mFormLayout);
+
+    mDirectChannelActionWidget->setObjectName(u"mDirectChannelActionWidget"_s);
+    mainLayout->addWidget(mDirectChannelActionWidget);
 }
 
 DirectChannelInfoWidget::~DirectChannelInfoWidget() = default;
@@ -205,4 +211,14 @@ void DirectChannelInfoWidget::setUser(const User &user)
     }
 }
 
+DirectChannelActionWidget::DirectChannelActionWidget(QWidget *parent)
+    : QWidget(parent)
+{
+    auto actionLayout = new QHBoxLayout;
+    actionLayout->setObjectName(u"mainLayout"_s);
+    actionLayout->setContentsMargins({});
+}
+
+DirectChannelActionWidget::~DirectChannelActionWidget() = default;
+
 #include "moc_directchannelinfowidget.cpp"
diff --git a/src/widgets/dialogs/directchannelinfowidget.h b/src/widgets/dialogs/directchannelinfowidget.h
index 94a27025f3..ed9d09a527 100644
--- a/src/widgets/dialogs/directchannelinfowidget.h
+++ b/src/widgets/dialogs/directchannelinfowidget.h
@@ -15,6 +15,15 @@ class User;
 class QFormLayout;
 class RocketChatAccount;
 class ResizablePixmapLabel;
+
+class LIBRUQOLAWIDGETS_TESTS_EXPORT DirectChannelActionWidget : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit DirectChannelActionWidget(QWidget *parent = nullptr);
+    ~DirectChannelActionWidget() override;
+};
+
 class LIBRUQOLAWIDGETS_TESTS_EXPORT DirectChannelInfoWidget : public QWidget
 {
     Q_OBJECT
@@ -33,5 +42,6 @@ private:
     QList<RoleInfo> mListRoleInfos;
     ResizablePixmapLabel *const mAvatar;
     QFormLayout *const mFormLayout;
+    DirectChannelActionWidget *const mDirectChannelActionWidget;
     RocketChatAccount *const mRocketChatAccount;
 };
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.