#include "widget.h"
#include "ui_widget.h"
#include "message.h"
Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget)
{
ui->setupUi(this);
new Message(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::on_pb_info_clicked()
{
POP_MSG(MessageType::MESSAGE_TYPE_INFORMATION, "information");
}
void Widget::on_pb_error_clicked()
{
POP_MSG(MessageType::MESSAGE_TYPE_ERROR, "error");
}
void Widget::on_pb_warn_clicked()
{
POP_MSG(MessageType::MESSAGE_TYPE_WARNING, "warning");
}
void Widget::on_pb_succ_clicked()
{
POP_MSG(MessageType::MESSAGE_TYPE_SUCCESS, "success");
}