]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/job/job.cpp
Make qt-console compatible to Qt5 (Qt4 still work)
[bacula/bacula] / bacula / src / qt-console / job / job.cpp
index 67ad1b4cd2c82e1b8301d6c4228e1eebba5ca626..fce650035f8ca981fd3e27e43ada6e1c5859598e 100644 (file)
@@ -407,7 +407,7 @@ void Job::populateForm()
          label_JobId->setText(fld.next());
          label_Name->setText(fld.next());
          
-         label_Level->setText(job_level_to_str(fld.next()[0].toAscii()));
+         label_Level->setText(job_level_to_str(fld.next()[0].toLatin1()));
 
          m_client = fld.next();
          label_Client->setText(m_client);
@@ -457,7 +457,7 @@ void Job::populateForm()
             }
          }
          label_JobStatus->setPixmap(QPixmap(":/images/" + stat + ".png"));
-         jobstatus_to_ascii_gui(stat[0].toAscii(), buf, sizeof(buf));
+         jobstatus_to_ascii_gui(stat[0].toLatin1(), buf, sizeof(buf));
          stat = buf;
          label_JobStatus->setToolTip(stat);