28 lines
641 B
C++
28 lines
641 B
C++
|
#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);
|
||
|
}
|
||
|
|
||
|
ExDlgSetHeaders::~ExDlgSetHeaders()
|
||
|
{
|
||
|
QMessageBox::information(this,"提示","设置表头消息框被删除");
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void ExDlgSetHeaders::setHeaderList(QStringList &headers)
|
||
|
{
|
||
|
m_model->setStringList(headers); //初始化字符串列表
|
||
|
}
|
||
|
|
||
|
QStringList ExDlgSetHeaders::headerList()
|
||
|
{
|
||
|
return m_model->stringList(); //返回字符串列表
|
||
|
}
|