Skip to content
Snippets Groups Projects
Commit f30a2cb1 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

GUI Job tab: change label 'Comments' -> 'Messages'

parent 4477534d
No related branches found
No related tags found
1 merge request!814GUI Job tab: change label 'Comments' -> 'Messages'
Pipeline #63396 passed
......@@ -25,7 +25,7 @@
namespace {
enum ETabId { JOB_PROPERTIES, JOB_COMMENTS };
enum ETabId { JOB_PROPERTIES, JOB_MESSAGES };
}
//==================================================================================================
......@@ -60,7 +60,7 @@ JobPropertiesWidget::JobPropertiesWidget(QWidget* parent, Qt::WindowFlags f)
m_propertiesView->setModel(m_propertiesModel);
m_commentsEditor = new QTextEdit(this);
m_tabWidget->insertTab(JOB_COMMENTS, m_commentsEditor, "Comments");
m_tabWidget->insertTab(JOB_MESSAGES, m_commentsEditor, "Messages");
connect(m_commentsEditor, &QTextEdit::textChanged, this,
&JobPropertiesWidget::onCommentsEdited);
......@@ -90,9 +90,9 @@ void JobPropertiesWidget::setItem(JobItem* item)
m_propertiesModel->setItem(m_item);
if (m_item) {
if (m_item->isFailed())
m_tabWidget->tabBar()->setTabTextColor(JOB_COMMENTS, Qt::red);
m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::red);
else
m_tabWidget->tabBar()->setTabTextColor(JOB_COMMENTS, Qt::black);
m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::black);
m_commentsEditor->setText(m_item->getComments());
m_item->mapper()->setOnPropertyChange(
[this](auto&& PH1) { notifyJobPropertyChange(std::forward<decltype(PH1)>(PH1)); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment