From 69c8fbdb08b7cc8953de40aaab1f97234cb7093f Mon Sep 17 00:00:00 2001 From: ribes Date: Tue, 26 Jan 2010 16:52:49 +0000 Subject: [PATCH] - Add Launcher Id job in table --- src/genericgui/BL_QModelManager.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/genericgui/BL_QModelManager.cxx b/src/genericgui/BL_QModelManager.cxx index ad0d4b9..2966e86 100644 --- a/src/genericgui/BL_QModelManager.cxx +++ b/src/genericgui/BL_QModelManager.cxx @@ -27,7 +27,7 @@ BL::QModelManager::QModelManager(QObject * parent, BL::JobsManager_QT * jobs_man _model = new QStandardItemModel(this); QStringList headers; - headers << "Job Name" << "Type" << "State" << "Resource"; + headers << "Job Name" << "Type" << "State" << "Resource" << "Launcher Id"; _model->setHorizontalHeaderLabels(headers); } @@ -73,12 +73,16 @@ BL::QModelManager::new_job_added(const QString & name) new_job_state = new QStandardItem("Finished"); QStandardItem * new_job_resource = new QStandardItem(job->getResource().c_str()); + QString id_str; + id_str.setNum(job->getSalomeLauncherId()); + QStandardItem * new_job_id = new QStandardItem(id_str); int row = _model->rowCount(); _model->setItem(row, 0, new_job_name); _model->setItem(row, 1, new_job_type); _model->setItem(row, 2, new_job_state); _model->setItem(row, 3, new_job_resource); + _model->setItem(row, 4, new_job_id); } void -- 2.39.2