|
@@ -48,8 +48,8 @@ QWidget *GreyClusteringItemSpinDelegate::createEditor(QWidget *parent, const QSt
|
|
|
QDoubleSpinBox *editor = new QDoubleSpinBox(parent);
|
|
|
|
|
|
editor->setFrame(false);
|
|
|
- editor->setMinimum(-10000);
|
|
|
- editor->setMaximum(10000);
|
|
|
+ editor->setMinimum(-1000000);
|
|
|
+ editor->setMaximum(1000000);
|
|
|
return editor;
|
|
|
}
|
|
|
|
|
@@ -66,7 +66,7 @@ void GreyClusteringItemSpinDelegate::setModelData(QWidget *editor, QAbstractItem
|
|
|
{
|
|
|
QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox *>(editor);
|
|
|
spinBox->interpretText();
|
|
|
- int value = spinBox->value();
|
|
|
+ double value = spinBox->value();
|
|
|
|
|
|
model->setData(index, value, Qt::EditRole);
|
|
|
}
|