qt/LedOK/LoUIClass/x_uimsgboxonlyclosebtn.cpp

28 lines
779 B
C++
Raw Normal View History

2022-01-04 18:11:48 +08:00
#include "x_uimsgboxonlyclosebtn.h"
#include "ui_x_uimsgboxonlyclosebtn.h"
x_uiMsgBoxOnlyCloseBtn::x_uiMsgBoxOnlyCloseBtn(QWidget *parent) :
LoQDialog(parent),
ui(new Ui::x_uiMsgBoxOnlyCloseBtn)
{
ui->setupUi(this);
}
x_uiMsgBoxOnlyCloseBtn::~x_uiMsgBoxOnlyCloseBtn()
{
delete ui;
}
x_uiMsgBoxOnlyCloseBtn::x_uiMsgBoxOnlyCloseBtn(QString strTitle, QWidget *parent) :
LoQDialog(parent),
ui(new Ui::x_uiMsgBoxOnlyCloseBtn)
{
ui->setupUi(this);
ui->label_3->setText(strTitle);
ui->pushButton_2->setProperty("ssType", "progManageTool");
ui->pushButton_2->setStyleSheet("QPushButton{background:rgba(28,154,210,255);}");
}
void x_uiMsgBoxOnlyCloseBtn::InSertDateSelector(QCalendarWidget *wDate)
{
ui->horizontalLayout->addWidget(wDate);
}