fix: Resolved technical debt - updated TODO/FIXME items: fixed UPDATE query in formproduct.cpp, corrected toDouble() in itemnumberdelegate.cpp, added ElementType enumeration, implemented composition deletion in formelementlist.cpp, updated README
This commit is contained in:
@@ -30,7 +30,7 @@ void ItemNumberDelegate::setEditorData(QWidget *editor, const QModelIndex &index
|
||||
{
|
||||
QString val = index.model()->data(index, Qt::EditRole).toString();
|
||||
val.replace(QString(","), QString("."));
|
||||
double value = val.toFloat(); //index.model()->data(index, Qt::EditRole).toDouble();
|
||||
double value = val.toDouble(); //index.model()->data(index, Qt::EditRole).toDouble();
|
||||
static_cast<QDoubleSpinBox*>(editor)->setValue(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user