40 lines
980 B
C++
Executable File
40 lines
980 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* CustomView for SRM Replay
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Mike Wille, SLSE, 2016-04-08
|
|
*/
|
|
|
|
#include "srm_replay.h"
|
|
#include "ui_srm_replay.h"
|
|
|
|
#include "replay_dialog_model.h"
|
|
|
|
namespace SituationReplayManagement
|
|
{
|
|
CustomViewReplay::CustomViewReplay(QWidget *parent)
|
|
: AbstractDisplayWidget(parent)
|
|
, m_ui(new Ui::CustomViewReplay)
|
|
{
|
|
m_ui->setupUi(this);
|
|
}
|
|
|
|
CustomViewReplay::~CustomViewReplay()
|
|
{
|
|
delete m_ui;
|
|
}
|
|
|
|
bool CustomViewReplay::init(const QModelIndex &idx)
|
|
{
|
|
if (!idx.isValid())
|
|
return false;
|
|
|
|
m_ui->lbName->setText(rowData(idx, SituationReplayManagement::ReplayPartitionDialogModel::Name).toString());
|
|
m_ui->lbExercise->setText(rowData(idx, SituationReplayManagement::ReplayPartitionDialogModel::Exercise).toString());
|
|
m_ui->lbWorkstationId->setText(rowData(idx, SituationReplayManagement::ReplayPartitionDialogModel::WorkstationId).toString());
|
|
return true;
|
|
}
|
|
} // namespace SituationReplayManagement
|