40 lines
943 B
C++
Executable File
40 lines
943 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* CustomView for MDM Station
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Patric Karwat, SLSE, 2016-10-05
|
|
*/
|
|
|
|
#include "template.h"
|
|
#include "ui_template.h"
|
|
|
|
#include "participant_template_chooser_model.h"
|
|
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
CustomViewTemplate::CustomViewTemplate(QWidget *parent) // TODO: Class Name passt irgendwie nicht zum Programm?
|
|
: 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;
|
|
}
|
|
} // namespace ParticipantManagement
|