代码拉取完成,页面将自动刷新
同步操作将从 wufangzhao/startalk_pc_v2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
//
// Created by cc on 2019-03-22.
//
#include "BatchAddMemberWnd.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
BatchAddMemberWnd::BatchAddMemberWnd(QWidget* parent)
: UShadowDialog(parent, true, true)
{
QFrame* titleFrm = new QFrame(this);
titleFrm->setFixedHeight(50);
titleFrm->setObjectName("titleFrm");
QLabel* titleLabel = new QLabel(tr("批量邀请群成员"), this);
titleLabel->setObjectName("TitleLabel");
auto * titleLay = new QHBoxLayout(titleFrm);
titleLay->setContentsMargins(20, 0, 20, 0);
titleLay->addWidget(titleLabel);
_pEidt = new AddGroupEdit(this);
_pEidt->setObjectName("TextEdit");
_pEidt->setContentsMargins(9, 6, 9, 6);
QPushButton* cancelBtn = new QPushButton(tr("取消"));
QPushButton* okBtn = new QPushButton(tr("确定"));
QFrame* btnFrm = new QFrame(this);
btnFrm->setObjectName("bodyFrm");
auto* btnFLay = new QHBoxLayout(btnFrm);
btnFLay->addItem(new QSpacerItem(10, 10, QSizePolicy::Expanding));
btnFLay->addWidget(cancelBtn);
btnFLay->addWidget(okBtn);
cancelBtn->setObjectName("cancelButton");
okBtn->setObjectName("makeSureButton");
cancelBtn->setFixedSize(72, 32);
okBtn->setFixedSize(72, 32);
QFrame* mainFrm = new QFrame(this);
auto* mainlay = new QVBoxLayout(mainFrm);
mainlay->setMargin(0);
mainlay->setSpacing(0);
mainlay->addWidget(titleFrm);
mainlay->addWidget(_pEidt);
mainlay->addWidget(btnFrm);
auto* lay = new QVBoxLayout(_pCenternWgt);
lay->setMargin(0);
lay->addWidget(mainFrm);
connect(cancelBtn, &QPushButton::clicked, [this](){
this->setVisible(false);
});
connect(okBtn, &QPushButton::clicked, [this](){
QString text = _pEidt->toPlainText();
emit sgBatchAddGroupMember(text);
this->setVisible(false);
});
setMoverAble(true, titleFrm);
setFixedSize(300, 500);
}
BatchAddMemberWnd::~BatchAddMemberWnd() {
}
/**
*
*/
void BatchAddMemberWnd::clear() {
_pEidt->clear();
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。