2019-10-04 23:37:27 +08:00
|
|
|
#include "ExDlgSetHeaders.h"
|
|
|
|
#include "ui_ExDlgSetHeaders.h"
|
|
|
|
#include <QMessageBox>
|
|
|
|
|
|
|
|
ExDlgSetHeaders::ExDlgSetHeaders(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::ExDlgSetHeaders)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
m_model = new QStringListModel(this);
|
2019-10-08 00:18:34 +08:00
|
|
|
ui->listView->setModel(m_model);
|
2019-10-04 23:37:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
ExDlgSetHeaders::~ExDlgSetHeaders()
|
|
|
|
{
|
|
|
|
QMessageBox::information(this,"提示","设置表头消息框被删除");
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExDlgSetHeaders::setHeaderList(QStringList &headers)
|
|
|
|
{
|
|
|
|
m_model->setStringList(headers); //初始化字符串列表
|
|
|
|
}
|
|
|
|
|
|
|
|
QStringList ExDlgSetHeaders::headerList()
|
|
|
|
{
|
|
|
|
return m_model->stringList(); //返回字符串列表
|
|
|
|
}
|