summary refs log tree commit diff
path: root/src/InviteeItem.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-07-21 11:55:01 +0000
committerGitHub <noreply@github.com>2021-07-21 11:55:01 +0000
commit8091e25913afaf5bbf814ade8384a71abf1d3945 (patch)
tree23a5209f904fe66bc1b42bd8f8653a7121d5ba09 /src/InviteeItem.cpp
parentExplicitly reload data in delegates, if related events got loaded (diff)
parentFix the loading spinner setup (diff)
downloadnheko-8091e25913afaf5bbf814ade8384a71abf1d3945.tar.xz
Merge pull request #595 from LorenDB/qml-all-the-things
QML all the things, part 1
Diffstat (limited to 'src/InviteeItem.cpp')
-rw-r--r--src/InviteeItem.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/InviteeItem.cpp b/src/InviteeItem.cpp
deleted file mode 100644

index 27f02560..00000000 --- a/src/InviteeItem.cpp +++ /dev/null
@@ -1,28 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Nheko Contributors -// -// SPDX-License-Identifier: GPL-3.0-or-later - -#include <QHBoxLayout> -#include <QLabel> -#include <QPushButton> - -#include "InviteeItem.h" - -constexpr int SidePadding = 10; - -InviteeItem::InviteeItem(mtx::identifiers::User user, QWidget *parent) - : QWidget{parent} - , user_{QString::fromStdString(user.to_string())} -{ - auto topLayout_ = new QHBoxLayout(this); - topLayout_->setSpacing(0); - topLayout_->setContentsMargins(SidePadding, 0, 3 * SidePadding, 0); - - name_ = new QLabel(user_, this); - removeUserBtn_ = new QPushButton(tr("Remove"), this); - - topLayout_->addWidget(name_); - topLayout_->addWidget(removeUserBtn_, 0, Qt::AlignRight); - - connect(removeUserBtn_, &QPushButton::clicked, this, &InviteeItem::removeItem); -}