ESGRAF48/source/SubTests/Plural/PluralWidget.cpp
2018-08-26 14:24:05 +02:00

22 lines
388 B
C++

#include "PluralWidget.h"
#include "ui_PluralWidget.h"
#include "PluralModel.h"
PluralWidget::PluralWidget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::PluralWidget)
{
ui->setupUi(this);
}
PluralWidget::~PluralWidget()
{
delete ui;
}
void PluralWidget::setModel(PluralModel *model)
{
ui->pluralTableView->setModel(model);
ui->pluralTableView->resizeColumnsToContents();
}