2018-05-20 17:13:18 +00:00
|
|
|
#include "GenusWidget.h"
|
|
|
|
#include "ui_GenusWidget.h"
|
|
|
|
|
2018-05-22 03:55:46 +00:00
|
|
|
#include "GenusModel.h"
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
GenusWidget::GenusWidget(QWidget* parent)
|
|
|
|
: QWidget(parent)
|
|
|
|
, ui(new Ui::GenusWidget)
|
2018-05-20 17:13:18 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->setupUi(this);
|
2018-05-22 03:55:46 +00:00
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->genusTableView->horizontalHeader()->hide();
|
2018-05-20 17:13:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GenusWidget::~GenusWidget()
|
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
delete ui;
|
2018-05-23 09:08:50 +00:00
|
|
|
}
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
void GenusWidget::setModel(GenusModel* model)
|
2018-05-23 09:08:50 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
ui->genusTableView->setModel(model);
|
2018-05-20 17:13:18 +00:00
|
|
|
}
|