hlp:640x480-小屏vx4齿轮泵代码提交
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#include "dlgshowmsg.h"
|
||||
#include "ui_dlgshowmsg.h"
|
||||
|
||||
DlgShowMsg::DlgShowMsg(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DlgShowMsg)
|
||||
{
|
||||
|
||||
ui->setupUi(this);
|
||||
this->setToolTip("警告");
|
||||
connect(ui->pushButtonOK,SIGNAL(pressed()),this,SLOT(OnpushButtonOKPressed()));
|
||||
this->hide();
|
||||
|
||||
}
|
||||
|
||||
DlgShowMsg::~DlgShowMsg()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
void DlgShowMsg::hideMsg()
|
||||
{
|
||||
ui->label->setText("");
|
||||
this->hide();
|
||||
}
|
||||
|
||||
void DlgShowMsg::showMsg(QString txt){
|
||||
ui->label->setText(txt);
|
||||
this->show();
|
||||
}
|
||||
|
||||
void DlgShowMsg::OnpushButtonOKPressed(){
|
||||
ui->label->setText("");
|
||||
this->hide();
|
||||
}
|
||||
Reference in New Issue
Block a user