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/VerbEnd/VerbEndWidget.cpp

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));
}