24 #include <QVBoxLayout>
28 enum ETabId { JOB_PROPERTIES, JOB_MESSAGES };
43 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
46 auto* layout =
new QVBoxLayout(
this);
48 layout->setSpacing(0);
49 layout->setContentsMargins(0, 0, 0, 0);
72 disconnect(
m_item,
nullptr,
this,
nullptr);
88 disconnect(
m_item,
nullptr,
this,
nullptr);
93 m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::red);
95 m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::black);
111 m_commentsEditor->blockSignals(true);
112 m_commentsEditor->setPlainText(m_item->getComments());
113 m_commentsEditor->blockSignals(false);
125 m_item->blockSignals(
true);
127 m_item->blockSignals(
false);
Defines class JobPropertiesWidget.
Defines GUI::StyleUtils namespace.
void setComments(const QString &comments)
QString getComments() const
void jobCommentsChanged(const QString &comments)
The JobPropertiesTableModel is a table model for the properties of a job except for the comment....
void setItem(JobItem *item)
Defines namespace GUI::Constants.
const QString JobPropertiesWidgetName
int PropertyPanelWidth()
Returns typical width of the vertical property panel.