Skip to content
Snippets Groups Projects
Commit 775cd276 authored by t.knopff's avatar t.knopff
Browse files

Make JobItem::P_COMMENTS private

parent 43aa454a
No related branches found
No related tags found
1 merge request!99Refactor model: JobItem
...@@ -283,6 +283,11 @@ bool JobItem::isStatusPropertyName(const QString& name) ...@@ -283,6 +283,11 @@ bool JobItem::isStatusPropertyName(const QString& name)
return name == P_STATUS; return name == P_STATUS;
} }
bool JobItem::isCommentsPropertyName(const QString& name)
{
return name == P_COMMENTS;
}
//! Updates the name of file to store intensity data. //! Updates the name of file to store intensity data.
void JobItem::updateIntensityDataFileName() void JobItem::updateIntensityDataFileName()
......
...@@ -41,9 +41,9 @@ private: ...@@ -41,9 +41,9 @@ private:
static const QString P_BEGIN_TIME; static const QString P_BEGIN_TIME;
static const QString P_END_TIME; static const QString P_END_TIME;
static const QString P_DURATION; static const QString P_DURATION;
static const QString P_COMMENTS;
public: public:
static const QString P_COMMENTS;
static const QString P_PROGRESS; static const QString P_PROGRESS;
static const QString P_PRESENTATION_TYPE; static const QString P_PRESENTATION_TYPE;
static const QString T_SAMPLE; static const QString T_SAMPLE;
...@@ -114,6 +114,8 @@ public: ...@@ -114,6 +114,8 @@ public:
static bool isStatusPropertyName(const QString& name); static bool isStatusPropertyName(const QString& name);
static bool isCommentsPropertyName(const QString& name);
private: private:
void updateIntensityDataFileName(); void updateIntensityDataFileName();
const SimulationOptionsItem* simulationOptionsItem() const; const SimulationOptionsItem* simulationOptionsItem() const;
......
...@@ -61,7 +61,7 @@ void JobPropertiesWidget::subscribeToItem() ...@@ -61,7 +61,7 @@ void JobPropertiesWidget::subscribeToItem()
{ {
currentItem()->mapper()->setOnPropertyChange( currentItem()->mapper()->setOnPropertyChange(
[this](const QString& name) { [this](const QString& name) {
if (name == JobItem::P_COMMENTS) if (JobItem::isCommentsPropertyName(name))
updateItem(); updateItem();
}, },
this); this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment