5 Star 23 Fork 6

Acreate / gamePlanTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AlgorithmTopItemWidgetItem.cpp 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
箜栢 提交于 2020-03-08 21:56 . 加入算法配置文件
#include "AlgorithmTopItemWidgetItem.h"
#include <QLabel>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <QVBoxLayout>
AlgorithmTopItemWidgetItem::AlgorithmTopItemWidgetItem(const QString& name
, const QString& express
, QWidget* parent
, const Qt::WindowFlags& f) {
QVBoxLayout* qvBoxLayout = new QVBoxLayout;
hLayout = new QHBoxLayout;
qvBoxLayout->addLayout(hLayout);
expressLabel = new QLabel(express, this);
qvBoxLayout->addWidget(expressLabel);
checkBox = new QCheckBox(name, this);
hLayout->addWidget(checkBox);
pushButton = new QPushButton("删除", this);
hLayout->addWidget(pushButton);
setLayout(qvBoxLayout);
connect(this->checkBox, &QCheckBox::stateChanged, this, &AlgorithmTopItemWidgetItem::onCheckBox);
connect(this->pushButton, &QPushButton::clicked, this, &AlgorithmTopItemWidgetItem::onBtnChicked);
}
void AlgorithmTopItemWidgetItem::onBtnChicked(bool clicked) {
emit sigPushChicked(this, clicked);
}
void AlgorithmTopItemWidgetItem::onCheckBox(int status) {
emit sigCheckChicked(this, status);
}
C++
1
https://gitee.com/ChenYLhuman/gamePlanTool.git
git@gitee.com:ChenYLhuman/gamePlanTool.git
ChenYLhuman
gamePlanTool
gamePlanTool
master

搜索帮助