2018-05-23 16:43:57 +00:00
|
|
|
#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);
|
2018-12-12 20:33:44 +00:00
|
|
|
|
|
|
|
connect(model, &VerbEndModel::causalPointsChanged, this, &VerbEndWidget::causalPointsChanged);
|
|
|
|
}
|
|
|
|
|
|
|
|
void VerbEndWidget::causalPointsChanged(unsigned int points)
|
|
|
|
{
|
|
|
|
ui->causalPointsLabel->setText(QString::number(points));
|
2018-05-23 16:43:57 +00:00
|
|
|
}
|