This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/SubTests/V2Svk/V2SvkWidget.cpp

44 lines
866 B
C++
Raw Permalink Normal View History

2018-06-25 21:04:32 +00:00
#include "V2SvkWidget.h"
#include "ui_V2SvkWidget.h"
2019-01-31 19:14:38 +00:00
#include "WFModel.h"
#include "OTModel.h"
#include "TPrModel.h"
#include "TPeModel.h"
2018-06-25 21:04:32 +00:00
2019-10-05 14:14:45 +00:00
V2SvkWidget::V2SvkWidget(QWidget* parent)
2019-01-31 19:14:38 +00:00
: QWidget(parent)
, ui(new Ui::V2SvkWidget)
2018-06-25 21:04:32 +00:00
{
2019-10-05 14:14:45 +00:00
ui->setupUi(this);
ui->wfTableView->horizontalHeader()->hide();
ui->otTableView->horizontalHeader()->hide();
ui->tprTableView->horizontalHeader()->hide();
ui->tpeTableView->horizontalHeader()->hide();
2018-06-25 21:04:32 +00:00
}
V2SvkWidget::~V2SvkWidget()
{
2019-10-05 14:14:45 +00:00
delete ui;
2018-06-25 21:04:32 +00:00
}
2019-10-05 14:14:45 +00:00
void V2SvkWidget::setWFModel(WFModel* model)
2018-06-25 21:04:32 +00:00
{
2019-10-05 14:14:45 +00:00
ui->wfTableView->setModel(model);
}
2019-01-31 19:14:38 +00:00
2019-10-05 14:14:45 +00:00
void V2SvkWidget::setOTModel(OTModel* model)
2019-01-31 19:14:38 +00:00
{
2019-10-05 14:14:45 +00:00
ui->otTableView->setModel(model);
2019-01-31 19:14:38 +00:00
}
2019-10-05 14:14:45 +00:00
void V2SvkWidget::setTPrModel(TPrModel* model)
2019-01-31 19:14:38 +00:00
{
2019-10-05 14:14:45 +00:00
ui->tprTableView->setModel(model);
2019-01-31 19:14:38 +00:00
}
2019-10-05 14:14:45 +00:00
void V2SvkWidget::setTPeModel(TPeModel* model)
{
2019-10-05 14:14:45 +00:00
ui->tpeTableView->setModel(model);
2018-06-25 21:04:32 +00:00
}