2018-06-04 16:48:58 +00:00
|
|
|
#include "PluralWidget.h"
|
|
|
|
#include "ui_PluralWidget.h"
|
|
|
|
|
|
|
|
#include "PluralModel.h"
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
PluralWidget::PluralWidget(QWidget* parent)
|
|
|
|
: QWidget(parent)
|
|
|
|
, ui(new Ui::PluralWidget)
|
2018-06-04 16:48:58 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->setupUi(this);
|
2019-02-02 13:44:01 +00:00
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->pluralTableView->horizontalHeader()->hide();
|
2018-06-04 16:48:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PluralWidget::~PluralWidget()
|
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
delete ui;
|
2018-06-04 16:48:58 +00:00
|
|
|
}
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
void PluralWidget::setModel(PluralModel* model)
|
2018-06-04 16:48:58 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->pluralTableView->setModel(model);
|
2018-06-04 16:48:58 +00:00
|
|
|
}
|