X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fgenericgui%2FBL_QModelManager.cxx;h=c7b3884933134253dcc19ecbf1ba7135f8f5859f;hb=4724650dcc5e5f2291564d809d66bb588d21ddb9;hp=6d52ad0b06bc0f7d8c443d513214189b82b7a6ca;hpb=70c432982839980de6c1f8efe3a8ee0130e09c73;p=modules%2Fjobmanager.git diff --git a/src/genericgui/BL_QModelManager.cxx b/src/genericgui/BL_QModelManager.cxx index 6d52ad0..c7b3884 100644 --- a/src/genericgui/BL_QModelManager.cxx +++ b/src/genericgui/BL_QModelManager.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2009-2013 CEA/DEN, EDF R&D +// Copyright (C) 2009-2015 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -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; @@ -101,7 +103,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 +132,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());