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

mv include, sort fcts

parent 6b6d6018
No related branches found
No related tags found
1 merge request!2345renaming classes and variables, mainly in jobs context
......@@ -19,6 +19,7 @@
#include "GUI/View/JobControl/JobparQModel.h"
#include "GUI/View/Layout/mainwindow_constants.h"
#include <QHeaderView>
#include <QSettings>
#include <QVBoxLayout>
namespace {
......@@ -26,10 +27,6 @@ namespace {
enum ETabId { JOB_PROPERTIES, JOB_MESSAGES };
} // namespace
//==================================================================================================
// JobPropertiesWidget
//==================================================================================================
//--------------------------------------------------------------------------------------------------
// public member functions
//--------------------------------------------------------------------------------------------------
......@@ -99,6 +96,19 @@ void JobPropertiesWidget::setJobItem(JobItem* jobItem)
m_comments_editor->clear();
}
//--------------------------------------------------------------------------------------------------
// private slots
//--------------------------------------------------------------------------------------------------
void JobPropertiesWidget::onCommentsEdited()
{
if (m_job_item) {
m_job_item->blockSignals(true);
m_job_item->batchInfo()->setComments(m_comments_editor->toPlainText());
m_job_item->blockSignals(false);
}
}
//--------------------------------------------------------------------------------------------------
// private member functions
//--------------------------------------------------------------------------------------------------
......@@ -134,16 +144,3 @@ void JobPropertiesWidget::saveSettings()
settings.endGroup();
settings.sync();
}
//--------------------------------------------------------------------------------------------------
// private slots
//--------------------------------------------------------------------------------------------------
void JobPropertiesWidget::onCommentsEdited()
{
if (m_job_item) {
m_job_item->blockSignals(true);
m_job_item->batchInfo()->setComments(m_comments_editor->toPlainText());
m_job_item->blockSignals(false);
}
}
......@@ -15,7 +15,6 @@
#ifndef BORNAGAIN_GUI_VIEW_JOBCONTROL_JOBPROPERTIESWIDGET_H
#define BORNAGAIN_GUI_VIEW_JOBCONTROL_JOBPROPERTIESWIDGET_H
#include <QSettings>
#include <QTabWidget>
#include <QTextEdit>
#include <QTreeView>
......
......@@ -17,6 +17,7 @@
#include "GUI/View/JobControl/JobListing.h"
#include "GUI/View/JobControl/JobPropertiesWidget.h"
#include "GUI/View/Layout/mainwindow_constants.h"
#include <QSettings>
#include <QVBoxLayout>
namespace {
......@@ -40,6 +41,7 @@ QList<int> qVariantToList(const QVariant& var)
} // namespace
JobSelector::JobSelector(JobsSet* jobs, QWidget* parent)
: QWidget(parent)
, m_splitter(new QSplitter(Qt::Vertical, 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