X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fgenericgui%2FBL_QModelManager.cxx;h=900258b91a4aba1f92a90f36490e5c7882967f01;hb=HEAD;hp=77bd60eb47ae9371ab060ac275a710382a98955c;hpb=fafdcee64180ce59122b48b01f869eb35f681b34;p=modules%2Fjobmanager.git diff --git a/src/genericgui/BL_QModelManager.cxx b/src/genericgui/BL_QModelManager.cxx index 77bd60e..900258b 100644 --- a/src/genericgui/BL_QModelManager.cxx +++ b/src/genericgui/BL_QModelManager.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2009-2014 CEA/DEN, EDF R&D +// Copyright (C) 2009-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,8 @@ #include "BL_QModelManager.hxx" #include "BL_JobsManager_QT.hxx" +#include + #ifdef WNT #undef ERROR #endif @@ -54,7 +56,7 @@ void BL::QModelManager::new_job_added(const QString & name) { DEBTRACE("Adding new job in the model manager"); - BL::Job * job = _jobs_manager->getJob(name.toStdString()); + BL::Job * job = _jobs_manager->getJob(name.toUtf8().constData()); QStandardItem * new_job_name = new QStandardItem(name); QStandardItem * new_job_type; @@ -62,6 +64,8 @@ BL::QModelManager::new_job_added(const QString & name) new_job_type = new QStandardItem("YACS_Schema"); else if (job->getType() == BL::Job::COMMAND) new_job_type = new QStandardItem("Command"); + else if (job->getType() == BL::Job::COMMAND_SALOME) + new_job_type = new QStandardItem("Command_Salome"); else if (job->getType() == BL::Job::PYTHON_SALOME) new_job_type = new QStandardItem("Python_Salome"); @@ -101,7 +105,7 @@ BL::QModelManager::job_state_changed(const QString & name) { DEBTRACE("BL::QModelManager::job_state_changed received"); - BL::Job * job = _jobs_manager->getJob(name.toStdString()); + BL::Job * job = _jobs_manager->getJob(name.toUtf8().constData()); QList item_list = _model->findItems(name); QStandardItem * job_state_item = _model->item(item_list.at(0)->row(), 2); @@ -130,7 +134,7 @@ BL::QModelManager::delete_job(const QString & name) if (list.size() != 1) { DEBMSG("LIST SIZE IS :" << list.size()); - DEBMSG("FOR NAME :" << name.toStdString()); + DEBMSG("FOR NAME :" << name.toUtf8().constData()); } if (list.size() > 0) _model->removeRow(list[0]->row());