31 lines
620 B
C++
31 lines
620 B
C++
#include "VerbEndWidget.h"
|
|
#include "ui_VerbEndWidget.h"
|
|
|
|
#include "VerbEndModel.h"
|
|
|
|
VerbEndWidget::VerbEndWidget(QWidget *parent)
|
|
: QWidget(parent)
|
|
, ui(new Ui::VerbEndWidget)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
ui->verbEndTableView->horizontalHeader()->hide();
|
|
}
|
|
|
|
VerbEndWidget::~VerbEndWidget()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void VerbEndWidget::setModel(VerbEndModel *model)
|
|
{
|
|
ui->verbEndTableView->setModel(model);
|
|
|
|
connect(model, &VerbEndModel::causalPointsChanged, this, &VerbEndWidget::causalPointsChanged);
|
|
}
|
|
|
|
void VerbEndWidget::causalPointsChanged(unsigned int points)
|
|
{
|
|
ui->causalPointsLabel->setText(QString::number(points));
|
|
}
|