17 : QStyledItemDelegate(parent), m_currentEditor(nullptr) {}
21 const QModelIndex &
index)
const {
22 auto row =
index.row();
24 owner()->getTie(row),
owner()->getConstraint(row),
25 owner()->areOthersFixed(row),
owner()->areAllOthersFixed(row),
26 owner()->areOthersTied(row),
owner()->isLogCheckboxTicked());
36 connect(
owner(), SIGNAL(logOptionsChecked(
bool)),
m_currentEditor, SLOT(setLogOptionsEnabled(
bool)));
48 const QModelIndex &
index)
const {
49 QStyledItemDelegate::setModelData(editor->layout()->itemAt(0)->widget(), model,
index);
55 if (ev->type() == QEvent::WindowDeactivate) {
60 return QStyledItemDelegate::eventFilter(
obj, ev);
65 const QModelIndex &
index)
const {
69 auto rect = option.rect;
70 auto dHeight = (option.rect.height() - option.fontMetrics.height()) / 2;
71 rect.adjust(0, dHeight, 0, -dHeight);
72 painter->drawText(
rect, tie);
74 QStyledItemDelegate::paint(painter, option,
index);
std::map< DeltaEMode::Type, std::string > index
double obj
the value of the quadratic function