34 lines
716 B
C++
Executable File
34 lines
716 B
C++
Executable File
|
|
|
|
|
|
#include "template.h"
|
|
#include "ui_template.h"
|
|
|
|
#include "participant_template_chooser_model.h"
|
|
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
CustomViewTemplate::CustomViewTemplate(QWidget *parent)
|
|
: AbstractDisplayWidget(parent)
|
|
, m_ui(new Ui::CustomViewTemplate)
|
|
{
|
|
m_ui->setupUi(this);
|
|
}
|
|
|
|
CustomViewTemplate::~CustomViewTemplate()
|
|
{
|
|
delete m_ui;
|
|
}
|
|
|
|
bool CustomViewTemplate::init(const QModelIndex &idx)
|
|
{
|
|
if (!idx.isValid())
|
|
return false;
|
|
|
|
m_ui->lbNote->setText(rowData(idx, ParticipantManagement::ParticipantTemplateChooserModel::ColDesignatorIdentifier).toString());
|
|
m_ui->lbType->setText(rowData(idx, ParticipantManagement::ParticipantTemplateChooserModel::ColType).toString());
|
|
return true;
|
|
}
|
|
}
|