Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+39
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in new issue
Block a user