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

replace 'job_properties' by 'job_editor'

parent 74f67e06
No related branches found
No related tags found
1 merge request!2345renaming classes and variables, mainly in jobs context
......@@ -45,7 +45,7 @@ QList<int> qVariantToList(const QVariant& var)
JobSelector::JobSelector(JobsSet* jobs, QWidget* parent)
: QWidget(parent)
, m_splitter(new QSplitter(Qt::Vertical, this))
, m_job_properties(new JobEditor(this))
, m_job_editor(new JobEditor(this))
, m_jobs(jobs)
{
setWindowTitle(GUI::Style::JobSelectorName);
......@@ -63,7 +63,7 @@ JobSelector::JobSelector(JobsSet* jobs, QWidget* parent)
m_splitter->setCollapsible(0, false);
m_splitter->setStretchFactor(0, 1);
m_splitter->addWidget(m_job_properties);
m_splitter->addWidget(m_job_editor);
m_splitter->setCollapsible(1, false);
m_splitter->setStretchFactor(1, 0);
......@@ -101,9 +101,9 @@ void JobSelector::makeJobItemSelected(JobItem* item)
void JobSelector::onSelectedJobsChanged(const QVector<JobItem*>& jobs)
{
if (jobs.size() == 1)
m_job_properties->setJobItem(jobs.front());
m_job_editor->setJobItem(jobs.front());
else
m_job_properties->setJobItem(nullptr);
m_job_editor->setJobItem(nullptr);
emit selectedJobsChanged();
}
......
......@@ -50,7 +50,7 @@ private:
QSplitter* m_splitter;
JobListing* m_listing;
JobEditor* m_job_properties;
JobEditor* m_job_editor;
JobsSet* m_jobs;
};
......
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