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

comms

parent c1d4aaca
No related branches found
No related tags found
1 merge request!2075various little corrections
......@@ -26,6 +26,11 @@ const double minimum_doublespin_value = std::numeric_limits<double>::lowest();
} // namespace
// ************************************************************************************************
// member class TuningData
// ************************************************************************************************
ParameterTuningDelegate::TuningData::TuningData()
: m_smin(0)
, m_smax(100)
......@@ -75,6 +80,10 @@ double ParameterTuningDelegate::TuningData::step() const
return (m_rmax - m_rmin) / (m_smax - m_smin);
}
// ************************************************************************************************
// class ParameterTuningDelegate
// ************************************************************************************************
ParameterTuningDelegate::ParameterTuningDelegate(QObject* parent)
: QItemDelegate(parent)
, m_valueColumn(1)
......
......@@ -19,10 +19,13 @@
#include <QItemDelegate>
#include <memory>
class QHBoxLayout;
class ParameterItem;
class QHBoxLayout;
class ScientificSpinBox;
//! View and control for parameters in RealTime (or Fit ?) activity.
//! In ParameterTuningWidget attached to the tree view.
class ParameterTuningDelegate : public QItemDelegate {
Q_OBJECT
public:
......
......@@ -37,7 +37,7 @@ ParameterTuningWidget::ParameterTuningWidget(QWidget* parent)
{
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_treeView->setItemDelegate(m_delegate);
m_treeView->setItemDelegate(m_delegate); // the delegate creates view&control for one param
m_treeView->setContextMenuPolicy(Qt::CustomContextMenu);
m_treeView->setDragDropMode(QAbstractItemView::NoDragDrop);
m_treeView->setAttribute(Qt::WA_MacShowFocusRect, false);
......
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